Class: PagedScopes::PageNotFound
- Inherits:
-
ActiveRecord::RecordNotFound
- Object
- ActiveRecord::RecordNotFound
- PagedScopes::PageNotFound
- Defined in:
- lib/paged_scopes/pages.rb
Instance Attribute Summary collapse
-
#substitute ⇒ Object
readonly
Returns the value of attribute substitute.
Instance Method Summary collapse
-
#initialize(message, substitute = nil) ⇒ PageNotFound
constructor
A new instance of PageNotFound.
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(, substitute = nil) super() @substitute = substitute end |
Instance Attribute Details
#substitute ⇒ Object (readonly)
Returns the value of attribute substitute.
3 4 5 |
# File 'lib/paged_scopes/pages.rb', line 3 def substitute @substitute end |