Exception: ActiveData::PersistenceAdapterMissing

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/active_data/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(data_source) ⇒ PersistenceAdapterMissing

Returns a new instance of PersistenceAdapterMissing.



96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/active_data/errors.rb', line 96

def initialize(data_source)
  super <<-MESSAGE
Could not find persistence adapter for #{data_source}
You can define it with:

  class #{data_source}
def self.active_data_persistence_adapter
  #{data_source}ActiveDataPersistenceAdapter
end
  end
  MESSAGE
end