diff options
author | Arthur Neves <arthurnn@gmail.com> | 2016-05-04 16:58:50 -0500 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2016-05-05 15:29:11 -0500 |
commit | 40a8d2f3b530b61f032d7a9e0b85b392c54b573e (patch) | |
tree | 8638fd22528466a1a63d21b6f278e9d4326b3a2f /activerecord/lib | |
parent | c1ae7ec15ba01217d70e15da1b021c416097f3dd (diff) | |
download | rails-40a8d2f3b530b61f032d7a9e0b85b392c54b573e.tar.gz rails-40a8d2f3b530b61f032d7a9e0b85b392c54b573e.tar.bz2 rails-40a8d2f3b530b61f032d7a9e0b85b392c54b573e.zip |
Better code readability
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. |