Browse Source

cleanup: rubocop: fix Layout/AlignArguments in app/models/group.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18994 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
bd5758e3d0
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      app/models/group.rb

+ 3
- 2
app/models/group.rb View 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

Loading…
Cancel
Save