##// END OF EJS Templates
Allow Journal to return empty Array instead nil in Journal#attachments (#24308)....
Jean-Philippe Lang -
r15575:fcbd06e09069
parent child
Show More
@@ -125,7 +125,7 class Journal < ActiveRecord::Base
125 end
125 end
126
126
127 def attachments
127 def attachments
128 journalized.respond_to?(:attachments) ? journalized.attachments : nil
128 journalized.respond_to?(:attachments) ? journalized.attachments : []
129 end
129 end
130
130
131 # Returns a string of css classes
131 # Returns a string of css classes
General Comments 0
You need to be logged in to leave comments. Login now