From 37acac483062b33fafbf0f32a8a1acfe6536bb8b Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 31 Dec 2014 16:24:43 +0800 Subject: [PATCH] pagination fix --- app/controllers/admin/admin_modules_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/admin_modules_controller.rb b/app/controllers/admin/admin_modules_controller.rb index e1e838e..53d6124 100644 --- a/app/controllers/admin/admin_modules_controller.rb +++ b/app/controllers/admin/admin_modules_controller.rb @@ -6,7 +6,7 @@ class Admin::AdminModulesController < OrbitAdminController end def index - @registered_modules = RegisteredModule.where(:completed => true) + @registered_modules = RegisteredModule.where(:completed => true).page(params[:page]).per(10) @table_fields = table_fields if request.xhr? render :partial => "index"