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.



15
16
17
# File 'lib/cms/behaviors/pagination.rb', line 15

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