Class: DataResurrection::Resuscitator
- Inherits:
-
Object
- Object
- DataResurrection::Resuscitator
- Defined in:
- lib/data_resurrection/resuscitator.rb
Instance Method Summary collapse
-
#initialize(adapter_key, active_record_settings) ⇒ Resuscitator
constructor
A new instance of Resuscitator.
Constructor Details
#initialize(adapter_key, active_record_settings) ⇒ Resuscitator
Returns a new instance of Resuscitator.
3 4 5 6 7 |
# File 'lib/data_resurrection/resuscitator.rb', line 3 def initialize(adapter_key, active_record_settings) extend find_adapter(adapter_key) ActiveRecord::Base.establish_connection(active_record_settings) @connection = ActiveRecord::Base.connection end |