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 end
def index def index
@registered_modules = RegisteredModule.where(:completed => true) @registered_modules = RegisteredModule.where(:completed => true).page(params[:page]).per(10)
@table_fields = table_fields @table_fields = table_fields
if request.xhr? if request.xhr?
render :partial => "index" render :partial => "index"