Class: Adhearsion::Configuration::DatabaseConfiguration

Inherits:
AbstractConfiguration show all
Defined in:
lib/adhearsion/initializer/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConfigurationEntryPoint

#add_configuration_for

Constructor Details

#initialize(options) ⇒ DatabaseConfiguration

Returns a new instance of DatabaseConfiguration.



210
211
212
213
# File 'lib/adhearsion/initializer/configuration.rb', line 210

def initialize(options)
  @orm                = options.delete(:orm) || :active_record # TODO: ORM is a misnomer
  @connection_options = options
end

Instance Attribute Details

#connection_optionsObject

Returns the value of attribute connection_options.



209
210
211
# File 'lib/adhearsion/initializer/configuration.rb', line 209

def connection_options
  @connection_options
end

#ormObject

Returns the value of attribute orm.



209
210
211
# File 'lib/adhearsion/initializer/configuration.rb', line 209

def orm
  @orm
end