Exception: Findable::NotActiveRecord
- Inherits:
-
FindableError
- Object
- StandardError
- FindableError
- Findable::NotActiveRecord
- Defined in:
- lib/findable/errors.rb
Instance Method Summary collapse
-
#initialize(model) ⇒ NotActiveRecord
constructor
A new instance of NotActiveRecord.
Constructor Details
#initialize(model) ⇒ NotActiveRecord
Returns a new instance of NotActiveRecord.
12 13 14 |
# File 'lib/findable/errors.rb', line 12 def initialize(model) super("#{model.model_name.name} class is not ActiveRecord") end |