Permalink
Browse files

Merge pull request #14528 from planas/patch-1

Require yaml explicitly on #database_configuration
  • Loading branch information...
1 parent b1bd32f commit 318a20c140de57a7d5f820753c82258a3696c465 @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 318a20c

Please sign in to comment.