Better code readability

This commit is contained in:
Arthur Neves 2016-05-04 16:58:50 -05:00
parent c1ae7ec15b
commit 40a8d2f3b5
No known key found for this signature in database
GPG Key ID: 04A390FB1E433E17
2 changed files with 2 additions and 4 deletions

@ -6,7 +6,7 @@ class ConnectionSpecification #:nodoc:
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)

@ -91,9 +91,7 @@ def connection
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.