diff options
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index f8b1ee639..fec5b8a83 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -29,7 +29,7 @@ class Group < Principal before_destroy :remove_references_before_destroy - scope :sorted, order("#{table_name}.lastname ASC") + scope :sorted, lambda { order("#{table_name}.lastname ASC") } safe_attributes 'name', 'user_ids', |