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.



186
187
188
189
# File 'lib/adhearsion/initializer/configuration.rb', line 186

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.



185
186
187
# File 'lib/adhearsion/initializer/configuration.rb', line 185

def connection_options
  @connection_options
end

#ormObject

Returns the value of attribute orm.



185
186
187
# File 'lib/adhearsion/initializer/configuration.rb', line 185

def orm
  @orm
end