1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-23 17:01: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:
- 'app/controllers/auth_sources_controller.rb'
- 'app/controllers/auto_completes_controller.rb'
- 'app/models/issue.rb'
- 'app/models/message.rb'
# Cop supports --auto-correct.

View File

@ -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',