Permalink
Browse files

Merge pull request #14528 from planas/patch-1

Require yaml explicitly on #database_configuration
  • Loading branch information...
1 parent 6e257b0 commit c40bfc6eb2baea78b8903e698ddc66935a959281 @rafaelfranca rafaelfranca committed Mar 30, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/rails/application/configuration.rb
@@ -94,6 +94,7 @@ def database_configuration
yaml = Pathname.new(paths["config/database"].first || "")
config = if yaml.exist?
+ require "yaml"
require "erb"
YAML.load(ERB.new(yaml.read).result) || {}
elsif ENV['DATABASE_URL']

0 comments on commit c40bfc6

Please sign in to comment.