Put back value

This commit is contained in:
chris 2013-05-08 21:37:33 +08:00
parent ae04f67924
commit 62d12533d0
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class OrbitBackendController < ApplicationController
def get_viewable(object_class, query=nil) def get_viewable(object_class, query=nil)
objects = get_objects(object_class,query).order_by(:created_at, :desc) objects = get_objects(object_class,query).order_by(:created_at, :desc)
Kaminari.paginate_array(objects).page(params[:page]).per(5) Kaminari.paginate_array(objects).page(params[:page]).per(10)
end end
def get_objects(object_class, query=nil) def get_objects(object_class, query=nil)