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:
parent
d4f491847d
commit
ad110b965f
@ -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.
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user