Browse Source

cleanup: rubocop: fix Layout/BlockAlignment in app/models/project.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19009 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
b31b57f82d
2 changed files with 2 additions and 2 deletions
  1. 0
    1
      .rubocop_todo.yml
  2. 2
    1
      app/models/project.rb

+ 0
- 1
.rubocop_todo.yml View File

@@ -19,7 +19,6 @@ Layout/AlignHash:
# SupportedStylesAlignWith: either, start_of_block, start_of_line
Layout/BlockAlignment:
Exclude:
- 'app/models/project.rb'
- 'app/models/time_entry.rb'

# Cop supports --auto-correct.

+ 2
- 1
app/models/project.rb View File

@@ -754,7 +754,8 @@ class Project < ActiveRecord::Base

safe_attributes(
'enabled_module_names',
:if => lambda {|project, user|
:if =>
lambda {|project, user|
if project.new_record?
if user.admin?
true

Loading…
Cancel
Save