]> source.dussan.org Git - redmine.git/commitdiff
Adds visible? method to journal (#37772).
authorGo MAEDA <maeda@farend.jp>
Thu, 20 Oct 2022 04:11:58 +0000 (04:11 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 20 Oct 2022 04:11:58 +0000 (04:11 +0000)
Patch by  Jens Krämer.

git-svn-id: https://svn.redmine.org/redmine/trunk@21905 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/journal.rb

index e60295c34154d4a6fb455644d93487cc8c536a7c..e0cc0bb4abce5bc3b621f47cbc383e6dd1f3b5c5 100644 (file)
@@ -146,6 +146,10 @@ class Journal < ActiveRecord::Base
     Attachment.where(id: ids).sort_by {|a| ids.index(a.id.to_s)}
   end
 
+  def visible?(*args)
+    journalized.visible?(*args)
+  end
+
   # Returns a string of css classes
   def css_classes
     s = +'journal'