Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initializer requires ERB explicitly instead of assuming Action Pack l…
…oaded it. [#722 state:resolved]
  • Loading branch information
josevalim authored and jeremy committed Jul 30, 2008
1 parent f93e737 commit af92dc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/initializer.rb
Expand Up @@ -707,6 +707,7 @@ def set_root_path!
# 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

Expand Down

0 comments on commit af92dc5

Please sign in to comment.