mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 13:41:04 +08:00
Remove some calls to all
. They are not required, and Rails4 raises warnings about them.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
class Admin::GroupsController < Admin::AdminController
|
||||
def index
|
||||
groups = Group.order(:name).all
|
||||
groups = Group.order(:name).to_a
|
||||
render_serialized(groups, BasicGroupSerializer)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user