pagination fix

This commit is contained in:
Harry Bomrah 2014-12-31 16:24:43 +08:00
parent 4f814609d7
commit 37acac4830
1 changed files with 1 additions and 1 deletions

View File

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