Commit 89f54049 authored by jplang's avatar jplang
Browse files

Allow Journal to return empty Array instead nil in Journal#attachments (#24308).

Patch by Roman Shipiev.

git-svn-id: https://svn.redmine.org/redmine/trunk@15957 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 5b78cccc
......@@ -125,7 +125,7 @@ class Journal < ActiveRecord::Base
end
def attachments
journalized.respond_to?(:attachments) ? journalized.attachments : nil
journalized.respond_to?(:attachments) ? journalized.attachments : []
end
# Returns a string of css classes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment