]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/BlockAlignment in app/models/project.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 11:53:48 +0000 (11:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 11:53:48 +0000 (11:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19009 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/project.rb

index 9eb161dcac96a9246bb0a8fcd67b68befd48af1a..95802d9aa770755b8d65ca7c9926cb68a8f65351 100644 (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.
index 8a41d45e5b43d48e59af101e362cd44bd20e0a1a..6c88093f217537eb88153cf062905ee207397839 100644 (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