From 9d23338de256b2f996810412457eb20e7f990b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Thu, 28 Jul 2011 10:37:36 +0300 Subject: Array is paginated differently. --- app/controllers/refinery/admin/blog/posts_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers/refinery') 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 -- cgit v1.2.3