From: Toshi MARUYAMA Date: Mon, 30 Sep 2019 08:59:26 +0000 (+0000) Subject: code cleanup: rubocop: fix Layout/MultilineBlockLayout in app/models/issue.rb X-Git-Tag: 4.1.0~524 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ad110b965fff0fbe414293f22b7e168e77d55f23;p=redmine.git code cleanup: rubocop: fix Layout/MultilineBlockLayout in app/models/issue.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18556 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5a0a78bf6..b5addccd6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -328,7 +328,6 @@ Layout/MultilineBlockLayout: Exclude: - 'app/controllers/auth_sources_controller.rb' - 'app/controllers/auto_completes_controller.rb' - - 'app/models/issue.rb' - 'app/models/message.rb' # Cop supports --auto-correct. diff --git a/app/models/issue.rb b/app/models/issue.rb index 8f74ec44e..97808306a 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -487,8 +487,9 @@ class Issue < ActiveRecord::Base } safe_attributes 'parent_issue_id', - :if => lambda {|issue, user| (issue.new_record? || issue.attributes_editable?(user)) && - user.allowed_to?(:manage_subtasks, issue.project) + :if => lambda {|issue, user| + (issue.new_record? || issue.attributes_editable?(user)) && + user.allowed_to?(:manage_subtasks, issue.project) } safe_attributes 'deleted_attachment_ids',