2010-06-17 5 views

Répondre

0

Il est chargé dans lib/initializer.rb (autour de la ligne 900 dans des rails 2.3.5):

# 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. 
def database_configuration 
    require 'erb' 
    YAML::load(ERB.new(IO.read(database_configuration_file)).result) 
end 
Questions connexes