From f44afe599539e37635243528c84a238795cf5b90 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 9 Feb 2011 01:29:58 +0900 Subject: [PATCH] fixes #3 per_page is available in partial templates now --- lib/kaminari/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kaminari/helpers.rb b/lib/kaminari/helpers.rb index 316f763..0ba47dd 100644 --- a/lib/kaminari/helpers.rb +++ b/lib/kaminari/helpers.rb @@ -130,7 +130,7 @@ module Kaminari end def paginate(scope, options = {}, &block) - PaginationRenderer.new self, options.reverse_merge(:current_page => scope.current_page, :num_pages => scope.num_pages, :remote => false) + PaginationRenderer.new self, options.reverse_merge(:current_page => scope.current_page, :num_pages => scope.num_pages, :per_page => scope.limit_value, :remote => false) end end end