Exception: Findable::NotActiveRecord

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

Instance Method Summary collapse

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