diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/refinery/admin/blog/posts_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/refinery/admin/blog/posts_controller.rb b/app/controllers/refinery/admin/blog/posts_controller.rb index ee73ee2..e3b0f3b 100644 --- a/app/controllers/refinery/admin/blog/posts_controller.rb +++ b/app/controllers/refinery/admin/blog/posts_controller.rb @@ -9,9 +9,9 @@ module Refinery :order => 'published_at DESC' def uncategorized - @blog_posts = Refinery::BlogPost.page(params[:page]) - .uncategorized - + @blog_posts = Kaminari.paginate_array(Refinery::BlogPost.uncategorized) + .page(params[:page]) + .per(Refinery::BlogPost.per_page) end def tags |