diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 00:46:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 00:46:13 +0000 |
commit | 12fbc3a817cb0faa4ddade178269c692455c2092 (patch) | |
tree | df0a69f2dc583c74435f180ac08b211d77894d25 /app/models/journal.rb | |
parent | 513e869c93a81aa7844632a8540882d06f0e5c46 (diff) | |
download | redmine-12fbc3a817cb0faa4ddade178269c692455c2092.tar.gz redmine-12fbc3a817cb0faa4ddade178269c692455c2092.zip |
cleanup: rubocop: fix Layout/AlignArguments in app/models/journal.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18936 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index 6ee6d9461..b6468b629 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -55,10 +55,12 @@ class Journal < ActiveRecord::Base where(Journal.visible_notes_condition(user, :skip_pre_condition => true)) } - safe_attributes 'notes', - :if => lambda {|journal, user| journal.new_record? || journal.editable_by?(user)} - safe_attributes 'private_notes', - :if => lambda {|journal, user| user.allowed_to?(:set_notes_private, journal.project)} + safe_attributes( + 'notes', + :if => lambda {|journal, user| journal.new_record? || journal.editable_by?(user)}) + safe_attributes( + 'private_notes', + :if => lambda {|journal, user| user.allowed_to?(:set_notes_private, journal.project)}) # Returns a SQL condition to filter out journals with notes that are not visible to user def self.visible_notes_condition(user=User.current, options={}) |