Exception: Paginate::InvalidPage

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/doozer/plugins/paginate/lib/paginate/collection.rb

Instance Method Summary collapse

Constructor Details

#initialize(page, page_num) ⇒ InvalidPage

Returns a new instance of InvalidPage.



4
5
6
# File 'lib/doozer/plugins/paginate/lib/paginate/collection.rb', line 4

def initialize(page, page_num)
  super "#{page.inspect} given as value, which translates to '#{page_num}' as page number"
end