Class: ActiveRecord::ConnectionAdapters::BoundSchemaReflection::FakePool

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/schema_cache.rb

Overview

:nodoc

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ FakePool

Returns a new instance of FakePool.



145
146
147
# File 'lib/active_record/connection_adapters/schema_cache.rb', line 145

def initialize(connection)
  @connection = connection
end

Instance Method Details

#with_connection {|@connection| ... } ⇒ Object

Yields:

  • (@connection)


149
150
151
# File 'lib/active_record/connection_adapters/schema_cache.rb', line 149

def with_connection
  yield @connection
end