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

app/models/group.rb

index 994ca49a0d6cf64468c388d6f9d7f271406e0f73..21166f1af43a4e55ecc58792ff6cb9c72342cf0a 100644 (file)
@@ -39,11 +39,12 @@ class Group < Principal
   scope :named, lambda {|arg| where("LOWER(#{table_name}.lastname) = LOWER(?)", arg.to_s.strip)}
   scope :givable, lambda {where(:type => 'Group')}
 
-  safe_attributes 'name',
+  safe_attributes(
+    'name',
     'user_ids',
     'custom_field_values',
     'custom_fields',
-    :if => lambda {|group, user| user.admin? && !group.builtin?}
+    :if => lambda {|group, user| user.admin? && !group.builtin?})
 
   def to_s
     name.to_s