pagination fix
This commit is contained in:
parent
4f814609d7
commit
37acac4830
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue