Class: Switchman::SharedSchemaCache

Inherits:
Object
  • Object
show all
Defined in:
lib/switchman/shared_schema_cache.rb

Class Method Summary collapse

Class Method Details

.get_schema_cache(connection) ⇒ Object



5
6
7
8
9
# File 'lib/switchman/shared_schema_cache.rb', line 5

def self.get_schema_cache(connection)
  @schema_cache ||= ::ActiveRecord::ConnectionAdapters::SchemaCache.new(connection)
  @schema_cache.connection = connection
  @schema_cache
end