Better code readability

上级 c1ae7ec1
...@@ -6,7 +6,7 @@ class ConnectionSpecification #:nodoc: ...@@ -6,7 +6,7 @@ class ConnectionSpecification #:nodoc:
attr_reader :config, :adapter_method, :id attr_reader :config, :adapter_method, :id
def initialize(id, config, adapter_method) def initialize(id, config, adapter_method)
@config, @adapter_method, @id = config, adapter_method, id @id, @config, @adapter_method = id, config, adapter_method
end end
def initialize_dup(original) def initialize_dup(original)
......
...@@ -91,9 +91,7 @@ def connection ...@@ -91,9 +91,7 @@ def connection
retrieve_connection retrieve_connection
end end
def specification_id=(value) attr_writer :specification_id
@specification_id = value
end
# Return the specification id from this class otherwise look it up # Return the specification id from this class otherwise look it up
# in the parent. # in the parent.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册