sort fix for ajax

This commit is contained in:
Harry Bomrah 2014-12-30 20:47:29 +08:00
parent 13e7720b3a
commit 733ada2f6a
1 changed files with 1 additions and 1 deletions

View File

@ -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