Skip to content
Browse files

Initializer requires ERB explicitly instead of assuming Action Pack l…

…oaded it. [#722 state:resolved]
  • Loading branch information...
1 parent f93e737 commit af92dc53a830a4639d38df79048f1a30a89dd38a @josevalim josevalim committed with jeremy Jul 30, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/initializer.rb
View
1 railties/lib/initializer.rb
@@ -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

0 comments on commit af92dc5

Please sign in to comment.
Something went wrong with that request. Please try again.