Initializer requires ERB explicitly instead of assuming Action Pack loaded it. [#722 state:resolved]

This commit is contained in:
José Valim
2008-07-30 01:49:49 -07:00
committed by Jeremy Kemper
parent eaab895f83
commit c4038764d2

View File

@@ -767,6 +767,7 @@ Run `rake gems:install` to install the missing gems.
# 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