diff options
author | Go MAEDA <maeda@farend.jp> | 2022-10-20 04:11:58 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-10-20 04:11:58 +0000 |
commit | d726df660f726171d6f42bb30fd163dfbb1fd230 (patch) | |
tree | 563d82872af87f91c64ef1e3505ac312fa2a15ce /app | |
parent | 1d9f5c67426a8e05eb94a0bdce4ea7d7a837f595 (diff) | |
download | redmine-d726df660f726171d6f42bb30fd163dfbb1fd230.tar.gz redmine-d726df660f726171d6f42bb30fd163dfbb1fd230.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/journal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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' |