summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--app/models/issue.rb5
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',