Exception: Filterameter::Exceptions::CannotDetermineModelError
- Inherits:
-
FilterameterError
- Object
- StandardError
- FilterameterError
- Filterameter::Exceptions::CannotDetermineModelError
- Defined in:
- lib/filterameter/exceptions/cannot_determine_model_error.rb
Overview
# Cannot Determine Model Error
Class CannotDetermineModelError is raised when the model class cannot be determined from either the controller name or controller path. This is a setup issue; the resolution is for the controller to specify the model class explicitly by adding a call to ‘filter_model`.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ CannotDetermineModelError
constructor
A new instance of CannotDetermineModelError.
Constructor Details
#initialize(name, path) ⇒ CannotDetermineModelError
Returns a new instance of CannotDetermineModelError.
11 12 13 14 |
# File 'lib/filterameter/exceptions/cannot_determine_model_error.rb', line 11 def initialize(name, path) super("Cannot determine model name from controller name #{value_and_classify(name)} " \ "or path #{value_and_classify(path)}. Declare the model explicitly with filter_model.") end |