From: Toshi MARUYAMA Date: Sat, 3 Oct 2020 15:36:12 +0000 (+0000) Subject: remove spaces inside {} of app/models/group.rb X-Git-Tag: 4.2.0~707 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=18da6cde280a0a3174584a1eb0aa673ddaeced4b;p=redmine.git remove spaces inside {} of app/models/group.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20110 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/group.rb b/app/models/group.rb index 1460e0ee5..2a1c2566d 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -35,7 +35,7 @@ class Group < Principal before_destroy :remove_references_before_destroy - scope :sorted, lambda { order(:type => :asc, :lastname => :asc) } + scope :sorted, lambda {order(:type => :asc, :lastname => :asc)} scope :named, lambda {|arg| where("LOWER(#{table_name}.lastname) = LOWER(?)", arg.to_s.strip)} scope :givable, lambda {where(:type => 'Group')}