Method: Rails::Configuration#database_configuration
- Defined in:
- lib/initializer.rb
#database_configuration ⇒ Object
Loads and returns the contents of the #database_configuration_file. The contents of the file are processed via ERB before being sent through YAML::load.
725 726 727 728 |
# File 'lib/initializer.rb', line 725 def database_configuration require 'erb' YAML::load(ERB.new(IO.read(database_configuration_file)).result) end |