1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

fixes #3 per_page is available in partial templates now

This commit is contained in:
Akira Matsuda 2011-02-09 01:29:58 +09:00
parent 23186e5c9c
commit f44afe5995

View file

@ -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