class RailsPaginate::Pagers::Base
base method
Attributes
collection[R]
default reader
options[R]
default reader
Public Class Methods
new(collection, options = {})
click to toggle source
set default collection and options
# File lib/rails_paginate/pagers/base.rb, line 8 def initialize(collection, options = {}) @collection = collection @options = options end
Public Instance Methods
current_page()
click to toggle source
# File lib/rails_paginate/pagers/base.rb, line 14 def current_page collection.current_page end
pages()
click to toggle source
total count
# File lib/rails_paginate/pagers/base.rb, line 19 def pages collection.pages end
visible_pages()
click to toggle source
abstract
# File lib/rails_paginate/pagers/base.rb, line 24 def visible_pages raise StandardError, "render is not implemented" end