Exception: Findable::RecordNotFound
- Inherits:
-
FindableError
- Object
- StandardError
- FindableError
- Findable::RecordNotFound
- Defined in:
- lib/findable/errors.rb
Instance Method Summary collapse
-
#initialize(model, params) ⇒ RecordNotFound
constructor
A new instance of RecordNotFound.
Constructor Details
#initialize(model, params) ⇒ RecordNotFound
Returns a new instance of RecordNotFound.
5 6 7 8 |
# File 'lib/findable/errors.rb', line 5 def initialize(model, params) params.symbolize_keys! if params.is_a?(Hash) super("Couldn't find #{model.model_name.name} with #{params.inspect}") end |