1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Adds visible? method to journal (#37772).

Patch by  Jens Krämer.


git-svn-id: https://svn.redmine.org/redmine/trunk@21905 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2022-10-20 04:11:58 +00:00
parent 1d9f5c6742
commit d726df660f

View 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'