提交 f6e36330 编写于 作者: J José Valim

Use the new Resolver API in dbconsole

上级 facf2b47
......@@ -83,9 +83,8 @@ def config
@config ||= begin
require APP_PATH
ActiveRecord::ConnectionAdapters::ConnectionSpecification::Resolver.new(
ENV['DATABASE_URL'],
(Rails.application.config.database_configuration || {})
).spec.config.stringify_keys
Rails.application.config.database_configuration || {}
).resolve(ENV["DATABASE_URL"]).config.stringify_keys
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册