method
connection=
v1.2.6 -
Show latest stable
- Class:
ActiveRecord::Base
connection=(spec)public
No documentation available.
# File activerecord/lib/active_record/query_cache.rb, line 50
def connection=(spec)
if spec.is_a?(ConnectionSpecification) and spec.config[:query_cache]
spec = QueryCache.new(self.send(spec.adapter_method, spec.config))
end
self.connection_without_query_cache = spec
end