sort fix for ajax
This commit is contained in:
parent
13e7720b3a
commit
733ada2f6a
|
@ -44,7 +44,7 @@ class Admin::RegisteredSitesController < OrbitAdminController
|
|||
site.save
|
||||
end
|
||||
@table_fields = table_fields
|
||||
@registeredsites = RegisteredSite.all.page(params[:page]).per(10)
|
||||
@registeredsites = RegisteredSite.all.desc(:created_at).page(params[:page]).per(10)
|
||||
# render :partial => "index"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue