From 12fbc3a817cb0faa4ddade178269c692455c2092 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 8 Nov 2019 00:46:13 +0000 Subject: [PATCH] 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 --- app/models/journal.rb | 10 ++++++---- 1 file 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={})