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')}