1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-30 04:09:38 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-09 06:54:50 +00:00
parent aef9b58168
commit bd5758e3d0

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