This commit is contained in:
parent
b38a4b3a0e
commit
2e369a9ed6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue