Class: Rails::Application::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/slurp/configuration_extension.rb

Instance Method Summary collapse

Instance Method Details

#database_configurationObject



4
5
6
7
# File 'lib/slurp/configuration_extension.rb', line 4

def database_configuration
  db_config = File.join(File.dirname(__FILE__), '..', '..', 'config', 'database.yml')
  YAML::load(ERB.new(IO.read(db_config)).result)
end