Module: Kaminari::Logarithmic::ActionViewExtension

Defined in:
lib/kaminari/logarithmic/action_view_extension.rb

Instance Method Summary collapse

Instance Method Details

#paginate_logarithmic(scope, options = {}, &block) ⇒ Object



4
5
6
7
# File 'lib/kaminari/logarithmic/action_view_extension.rb', line 4

def paginate_logarithmic(scope, options = {}, &block)
  paginator = Kaminari::Logarithmic::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