parent
fe04b7cf97
commit
282b212529
|
@ -14,7 +14,7 @@ module Kaminari
|
|||
# * <tt>:param_name</tt> - parameter name for page number in the links (:page by default)
|
||||
# * <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 = {}, &block)
|
||||
def paginate(scope, options = {})
|
||||
options[:total_pages] ||= options[:num_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))
|
||||
|
|
Loading…
Reference in New Issue