From: Go MAEDA Date: Thu, 20 Oct 2022 04:32:06 +0000 (+0000) Subject: Merged r21905 from trunk to 5.0-stable (#37772). X-Git-Tag: 5.0.4~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c02e3bfaec5fb45bd02d840b2306a875cc4f7f88;p=redmine.git Merged r21905 from trunk to 5.0-stable (#37772). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21908 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/journal.rb b/app/models/journal.rb index 01d5debcd..f9af26e8f 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -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'