mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Initializer requires ERB explicitly instead of assuming Action Pack loaded it. [#722 state:resolved]
This commit is contained in:
committed by
Jeremy Kemper
parent
eaab895f83
commit
c4038764d2
@@ -767,6 +767,7 @@ Run `rake gems:install` to install the missing gems.
|
||||
# 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user