Exception: ControllerResources::NotDefinedError

Inherits:
RuntimeError
  • Object
show all
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

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
  @message = %(
    Call to #edit_params failed: Resource not defined.
  )
end