Exception: ControllerResources::NotDefinedError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ControllerResources::NotDefinedError
- Defined in:
- lib/controller_resources/not_defined_error.rb
Overview
Thrown when a resource has not been defined, yet the controller attempts to call the generated edit_params method.
Instance Method Summary collapse
-
#initialize(*args) ⇒ NotDefinedError
constructor
A new instance of NotDefinedError.
Constructor Details
#initialize(*args) ⇒ NotDefinedError
Returns a new instance of NotDefinedError.
5 6 7 8 9 10 |
# File 'lib/controller_resources/not_defined_error.rb', line 5 def initialize(*args) super = %( Call to #edit_params failed: Resource not defined. ) end |