From b31b57f82d10e6f19c04dfa38a98a57d772dca1b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 9 Nov 2019 11:53:48 +0000 Subject: [PATCH] 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 --- .rubocop_todo.yml | 1 - app/models/project.rb | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 9eb161dca..95802d9aa 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. diff --git a/app/models/project.rb b/app/models/project.rb index 8a41d45e5..6c88093f2 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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 -- 2.39.5