Class: ActiveType::NoTable::DummyConnection

Inherits:
ActiveRecord::ConnectionAdapters::AbstractAdapter
  • Object
show all
Defined in:
lib/active_type/no_table.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDummyConnection

Returns a new instance of DummyConnection.



35
36
37
38
39
# File 'lib/active_type/no_table.rb', line 35

def initialize(*)
  super
  @schema_cache = DummySchemaCache.new
  @pool = DummyPool.new
end

Instance Attribute Details

#schema_cacheObject (readonly)

Returns the value of attribute schema_cache.



33
34
35
# File 'lib/active_type/no_table.rb', line 33

def schema_cache
  @schema_cache
end

Class Method Details

.quote_column_name(column_name) ⇒ Object



41
42
43
# File 'lib/active_type/no_table.rb', line 41

def self.quote_column_name(column_name)
  column_name.to_s
end

Instance Method Details

#poolObject



45
46
47
# File 'lib/active_type/no_table.rb', line 45

def pool
  @pool
end