Module: ActiveRecord::ConnectionAdapters::AbstractPool
- Included in:
- ConnectionPool, NullPool
- Defined in:
- activerecord/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 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 24 def get_schema_cache(connection) self.schema_cache ||= SchemaCache.new(connection) schema_cache.connection = connection schema_cache end |
#set_schema_cache(cache) ⇒ Object
30 31 32 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 30 def set_schema_cache(cache) self.schema_cache = cache end |