提交 24f1f822 编写于 作者: A Akira Matsuda

Giving a Symbol here might be a very little bit efficient than giving a String

since the key is goning to be converted to a Symbol later
上级 08604eea
......@@ -133,11 +133,11 @@ def self.configurations
self.filter_attributes = []
def self.connection_handler
Thread.current.thread_variable_get("ar_connection_handler") || default_connection_handler
Thread.current.thread_variable_get(:ar_connection_handler) || default_connection_handler
end
def self.connection_handler=(handler)
Thread.current.thread_variable_set("ar_connection_handler", handler)
Thread.current.thread_variable_set(:ar_connection_handler, handler)
end
self.default_connection_handler = ConnectionAdapters::ConnectionHandler.new
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册