Exception: Cms::Behaviors::Pagination::InvalidPage

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/cms/behaviors/pagination.rb

Instance Method Summary collapse

Constructor Details

#initialize(page, page_num) ⇒ InvalidPage

Returns a new instance of InvalidPage.



12
13
14
# File 'lib/cms/behaviors/pagination.rb', line 12

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