Class: ActiveRecord::ConnectionAdapters::ConnectionPool

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

Constant Summary collapse

@@columns_hash_proxy =
nil

Instance Method Summary collapse

Instance Method Details

#columns_hashObject



37
38
39
# File 'lib/arel_rails2_hacks.rb', line 37

def columns_hash
  @@columns_hash_proxy ||= Mochigome::ColumnsHashProxy.new(self)
end

#table_exists?(name) ⇒ Boolean

Returns:

  • (Boolean)


30
31
32
33
34
# File 'lib/arel_rails2_hacks.rb', line 30

def table_exists?(name)
  ActiveRecord::Base.connection_pool.with_connection do |c|
    c.table_exists?(name)
  end
end