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



24
25
26
27
28
# File 'lib/active_record/connection_adapters/abstract/connection_pool.rb', line 24

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

#set_schema_cache(cache) ⇒ Object



30
31
32
# File 'lib/active_record/connection_adapters/abstract/connection_pool.rb', line 30

def set_schema_cache(cache)
  @schema_cache = cache
end