diff --git a/config/initializers/database_url.rb b/config/initializers/database_url.rb index b00a55fdf..dd0181022 100644 --- a/config/initializers/database_url.rb +++ b/config/initializers/database_url.rb @@ -22,7 +22,7 @@ def self.config_file end def self.db_config - config = YAML::load(ERB.new(IO.read(config_file)).result) + config = YAML::load(ERB.new(File.read(config_file)).result) config[env] end