Module: ActiveRecord::ConnectionAdapters::AbstractPool

Included in:
ConnectionPool, NullPool
Defined in:
lib/active_record/connection_adapters/abstract/connection_pool.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#get_schema_cache(connection) ⇒ Object



11
12
13
14
15
# File 'lib/active_record/connection_adapters/abstract/connection_pool.rb', line 11

def get_schema_cache(connection)
  self.schema_cache ||= SchemaCache.new(connection)
  schema_cache.connection = connection
  schema_cache
end

#set_schema_cache(cache) ⇒ Object



17
18
19
# File 'lib/active_record/connection_adapters/abstract/connection_pool.rb', line 17

def set_schema_cache(cache)
  self.schema_cache = cache
end