diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/connection_specification.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_handling.rb | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/connection_specification.rb index f8cdf3ca0c..430937ae65 100644 --- a/activerecord/lib/active_record/connection_adapters/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/connection_specification.rb @@ -6,7 +6,7 @@ module ActiveRecord attr_reader :config, :adapter_method, :id def initialize(id, config, adapter_method) - @config, @adapter_method, @id = config, adapter_method, id + @id, @config, @adapter_method = id, config, adapter_method end def initialize_dup(original) diff --git a/activerecord/lib/active_record/connection_handling.rb b/activerecord/lib/active_record/connection_handling.rb index 543992dcbf..7d01c4ea48 100644 --- a/activerecord/lib/active_record/connection_handling.rb +++ b/activerecord/lib/active_record/connection_handling.rb @@ -91,9 +91,7 @@ module ActiveRecord retrieve_connection end - def specification_id=(value) - @specification_id = value - end + attr_writer :specification_id # Return the specification id from this class otherwise look it up # in the parent. |