diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-30 08:59:26 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-30 08:59:26 +0000 |
commit | ad110b965fff0fbe414293f22b7e168e77d55f23 (patch) | |
tree | a348e2505b0c94f0d0d83401a68255adcf374c67 | |
parent | d4f491847da7df12e8f181f66168ae50c2d15034 (diff) | |
download | redmine-ad110b965fff0fbe414293f22b7e168e77d55f23.tar.gz redmine-ad110b965fff0fbe414293f22b7e168e77d55f23.zip |
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
-rw-r--r-- | .rubocop_todo.yml | 1 | ||||
-rw-r--r-- | app/models/issue.rb | 5 |
2 files changed, 3 insertions, 3 deletions
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', |