Class: PagedScopes::PageNotFound

Inherits:
ActiveRecord::RecordNotFound
  • Object
show all
Defined in:
lib/paged_scopes/pages.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, substitute = nil) ⇒ PageNotFound

Returns a new instance of PageNotFound.



4
5
6
7
# File 'lib/paged_scopes/pages.rb', line 4

def initialize(message, substitute = nil)
  super(message)
  @substitute = substitute
end

Instance Attribute Details

#substituteObject (readonly)

Returns the value of attribute substitute.



3
4
5
# File 'lib/paged_scopes/pages.rb', line 3

def substitute
  @substitute
end