Exception: Findable::RecordNotFound

Inherits:
FindableError show all
Defined in:
lib/findable/errors.rb

Instance Method Summary collapse

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