public Method

Configuration.database_configuration

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.

Source Code

# File initializer.rb, line 524
def database_configuration
  YAML::load(ERB.new(IO.read(database_configuration_file)).result)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.