Permalink
Browse files

Use the new Resolver API in dbconsole

  • Loading branch information...
1 parent facf2b4 commit f6e363309a6cffacd6087f3a901c562265c3b2ed @josevalim josevalim committed Dec 23, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 railties/lib/rails/commands/dbconsole.rb
View
5 railties/lib/rails/commands/dbconsole.rb
@@ -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

0 comments on commit f6e3633

Please sign in to comment.