From 13e7720b3a21a7e5adcd8795c300562806182df1 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 30 Dec 2014 20:28:20 +0800 Subject: [PATCH] small fix again --- app/controllers/admin/registered_sites_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/registered_sites_controller.rb b/app/controllers/admin/registered_sites_controller.rb index 8b87f1e..c8adb28 100644 --- a/app/controllers/admin/registered_sites_controller.rb +++ b/app/controllers/admin/registered_sites_controller.rb @@ -4,12 +4,12 @@ class Admin::RegisteredSitesController < OrbitAdminController def index @registeredsites = RegisteredSite.all.order_by(sort) .with_categories(filters("category")) - .with_tags(filters("tag")) + .with_tags(filters("tag")).desc(:created_at) @table_fields = table_fields @tags = @module_app.tags @categories = @module_app.categories.enabled @filter_fields = filter_fields_without_status(@categories, @tags) - @registeredsites = search_data(@registeredsites,[:title]).page(params[:page].per(10).desc(:created_at)) + @registeredsites = search_data(@registeredsites,[:title]).page(params[:page]).per(10) if request.xhr? render :partial => "index"