diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-08-25 13:57:59 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-08-25 13:57:59 +0300 |
commit | 36affef45e8b402471040d2c7d099f8e3ff7f91d (patch) | |
tree | c8b8c022cde387d7b9d277371b0aaafe0ee1d044 /app/controllers/refinery/admin | |
parent | 6b73469c1a0864551f4b9e6bb8b40c84abf201f5 (diff) | |
download | refinerycms-blog-36affef45e8b402471040d2c7d099f8e3ff7f91d.tar.gz refinerycms-blog-36affef45e8b402471040d2c7d099f8e3ff7f91d.tar.bz2 refinerycms-blog-36affef45e8b402471040d2c7d099f8e3ff7f91d.zip |
will_paginate is back.
Diffstat (limited to 'app/controllers/refinery/admin')
-rw-r--r-- | app/controllers/refinery/admin/blog/posts_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/refinery/admin/blog/posts_controller.rb b/app/controllers/refinery/admin/blog/posts_controller.rb index c8c38b2..548f8c9 100644 --- a/app/controllers/refinery/admin/blog/posts_controller.rb +++ b/app/controllers/refinery/admin/blog/posts_controller.rb @@ -1,3 +1,5 @@ +require 'will_paginate/array' + module Refinery module Admin module Blog @@ -9,7 +11,8 @@ module Refinery :order => 'published_at DESC' def uncategorized - @blog_posts = Kaminari.paginate_array(Refinery::BlogPost.uncategorized).page(params[:page]).per(Refinery::BlogPost.per_page) + @blog_posts = Refinery::BlogPost.uncategorized.paginate(:page => params[:page], + :per_page => Refinery::BlogPost.per_page) end def tags |