1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-23 08:51:13 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-09-30 08:59:26 +00:00
parent d4f491847d
commit ad110b965f
2 changed files with 3 additions and 3 deletions

View File

@ -328,7 +328,6 @@ Layout/MultilineBlockLayout:
Exclude: Exclude:
- 'app/controllers/auth_sources_controller.rb' - 'app/controllers/auth_sources_controller.rb'
- 'app/controllers/auto_completes_controller.rb' - 'app/controllers/auto_completes_controller.rb'
- 'app/models/issue.rb'
- 'app/models/message.rb' - 'app/models/message.rb'
# Cop supports --auto-correct. # Cop supports --auto-correct.

View File

@ -487,7 +487,8 @@ class Issue < ActiveRecord::Base
} }
safe_attributes 'parent_issue_id', safe_attributes 'parent_issue_id',
:if => lambda {|issue, user| (issue.new_record? || issue.attributes_editable?(user)) && :if => lambda {|issue, user|
(issue.new_record? || issue.attributes_editable?(user)) &&
user.allowed_to?(:manage_subtasks, issue.project) user.allowed_to?(:manage_subtasks, issue.project)
} }