123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Inherits: Object
Defined in: activerecord/lib/active_record/connection_adapters/schema_cache.rb

Overview

:nodoc

Class Method Summary

Instance Method Summary

Constructor Details

.new(connection) ⇒ FakePool

[ GitHub ]

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

def initialize(connection)
  @connection = connection
end

Instance Method Details

#with_connection {|@connection| ... }

Yields:

  • (@connection)
[ GitHub ]

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

def with_connection
  yield @connection
end