mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 00:06:01 +01:00
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
This commit is contained in:
@@ -19,7 +19,6 @@ Layout/AlignHash:
|
|||||||
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
||||||
Layout/BlockAlignment:
|
Layout/BlockAlignment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/project.rb'
|
|
||||||
- 'app/models/time_entry.rb'
|
- 'app/models/time_entry.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
|||||||
@@ -754,7 +754,8 @@ class Project < ActiveRecord::Base
|
|||||||
|
|
||||||
safe_attributes(
|
safe_attributes(
|
||||||
'enabled_module_names',
|
'enabled_module_names',
|
||||||
:if => lambda {|project, user|
|
:if =>
|
||||||
|
lambda {|project, user|
|
||||||
if project.new_record?
|
if project.new_record?
|
||||||
if user.admin?
|
if user.admin?
|
||||||
true
|
true
|
||||||
|
|||||||
Reference in New Issue
Block a user