Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initializer requires ERB explicitly instead of assuming Action Pack l…

…oaded it. [#722 state:resolved]
  • Loading branch information...
commit c4038764d2b4c05178cceb22066e0ece59fe49d2 1 parent eaab895
@josevalim josevalim authored jeremy committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  railties/lib/initializer.rb
View
1  railties/lib/initializer.rb
@@ -767,6 +767,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
Please sign in to comment.
Something went wrong with that request. Please try again.