diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-21 22:41:38 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-21 22:41:38 -0500 |
commit | 8b858782fa693e89a47fc3dd5ae38d842ede6d04 (patch) | |
tree | a0411493d32f91b1d48758482376cd12d5dd9636 /activerecord/lib/active_record/connection_adapters | |
parent | 92f944818eece9fe4bc62ffb39accdb71ebc32be (diff) | |
download | rails-8b858782fa693e89a47fc3dd5ae38d842ede6d04.tar.gz rails-8b858782fa693e89a47fc3dd5ae38d842ede6d04.tar.bz2 rails-8b858782fa693e89a47fc3dd5ae38d842ede6d04.zip |
Ensure adapater specific code is loaded on ActiveRecord::Base.establish_connection
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb index 2a8807fb78..07b122efd1 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb @@ -211,6 +211,7 @@ module ActiveRecord clear_active_connection_name @active_connection_name = name @@defined_connections[name] = spec + connection when Symbol, String if configuration = configurations[spec.to_s] establish_connection(configuration) |