This commit is contained in:
Akira Matsuda 2016-06-07 14:16:55 +09:00
parent b38a4b3a0e
commit 2e369a9ed6
1 changed files with 1 additions and 3 deletions

View File

@ -15,9 +15,7 @@ module Kaminari
# * <tt>:remote</tt> - Ajax? (false by default)
# * <tt>:ANY_OTHER_VALUES</tt> - Any other hash key & values would be directly passed into each tag as :locals value.
def paginate(scope, options = {})
options[:total_pages] ||= scope.total_pages
paginator = Kaminari::Helpers::Paginator.new(self, options.reverse_merge(:current_page => scope.current_page, :per_page => scope.limit_value, :remote => false))
paginator = Kaminari::Helpers::Paginator.new(self, options.reverse_merge(:current_page => scope.current_page, :total_pages => scope.total_pages, :per_page => scope.limit_value, :remote => false))
paginator.to_s
end