diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-30 15:35:21 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-30 15:35:21 -0800 |
commit | ddde548816df68321a88bfa9fdd606d3dfac33aa (patch) | |
tree | ac451c53b387292c2478b56029b762cdb55a3001 /activerecord/lib/active_record | |
parent | 41c24eb3e38af99b208c17041199832a0372da8f (diff) | |
download | rails-ddde548816df68321a88bfa9fdd606d3dfac33aa.tar.gz rails-ddde548816df68321a88bfa9fdd606d3dfac33aa.tar.bz2 rails-ddde548816df68321a88bfa9fdd606d3dfac33aa.zip |
connection specification will deep copy the config
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/connection_specification.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/connection_specification.rb index 34bdcc0802..8491d42b86 100644 --- a/activerecord/lib/active_record/connection_adapters/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/connection_specification.rb @@ -7,6 +7,10 @@ module ActiveRecord @config, @adapter_method = config, adapter_method end + def initialize_dup(original) + @config = original.config.dup + end + ## # Builds a ConnectionSpecification from user input class Resolver # :nodoc: |