Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #14528 from planas/patch-1

Require yaml explicitly on #database_configuration
  • Loading branch information...
commit c40bfc6eb2baea78b8903e698ddc66935a959281 1 parent 6e257b0
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  railties/lib/rails/application/configuration.rb
View
1  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']
Please sign in to comment.
Something went wrong with that request. Please try again.