From d726df660f726171d6f42bb30fd163dfbb1fd230 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 20 Oct 2022 04:11:58 +0000 Subject: [PATCH] Adds visible? method to journal (#37772). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21905 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 e60295c34..e0cc0bb4a 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -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' -- 2.39.5