mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
code cleanup: rubocop: fix Layout/BlockEndNewline in app/models/issue.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18517 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d0ca6ad31d
commit
2829ddcc33
@ -67,7 +67,6 @@ Layout/BlockEndNewline:
|
||||
Exclude:
|
||||
- 'app/controllers/auth_sources_controller.rb'
|
||||
- 'app/controllers/files_controller.rb'
|
||||
- 'app/models/issue.rb'
|
||||
- 'app/models/message.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
|
||||
@ -488,7 +488,8 @@ 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)}
|
||||
user.allowed_to?(:manage_subtasks, issue.project)
|
||||
}
|
||||
|
||||
safe_attributes 'deleted_attachment_ids',
|
||||
:if => lambda {|issue, user| issue.attachments_deletable?(user)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user