From c02e3bfaec5fb45bd02d840b2306a875cc4f7f88 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 20 Oct 2022 04:32:06 +0000 Subject: [PATCH] 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 --- app/models/journal.rb | 4 ++++ 1 file changed, 4 insertions(+) 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' -- 2.39.5