]> source.dussan.org Git - redmine.git/commitdiff
Merged r21905 from trunk to 5.0-stable (#37772).
authorGo MAEDA <maeda@farend.jp>
Thu, 20 Oct 2022 04:32:06 +0000 (04:32 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 20 Oct 2022 04:32:06 +0000 (04:32 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21908 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/journal.rb

index 01d5debcd796d45e5d761f707c15d99c662b1bf4..f9af26e8f03fb631bdd87e5eacae8f4e7c077036 100644 (file)
@@ -143,6 +143,10 @@ class Journal < ActiveRecord::Base
     details.select{ |d| d.property == 'attachment' }.map{ |d| Attachment.find_by(:id => d.prop_key) }.compact
   end
 
+  def visible?(*args)
+    journalized.visible?(*args)
+  end
+
   # Returns a string of css classes
   def css_classes
     s = +'journal'