Class: Arel::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/3.0/arel/table.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.table_cache_with_wraithdb(engine) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/rails/3.0/arel/table.rb', line 13

def table_cache_with_wraithdb(engine)
  begin
    table_cache_without_wraithdb(engine)
  rescue StandardError => e
    tables = {}
    WraithDB::Schema.tables.keys.each do |table_name|
      tables[table_name] = true
    end
    tables
  end
end

Instance Method Details

#columns_with_wraithdbObject



3
4
5
6
7
8
9
# File 'lib/rails/3.0/arel/table.rb', line 3

def columns_with_wraithdb
  begin
    columns_without_wraithdb
  rescue StandardError => e
    attributes_for WraithDB::Schema.tables[@name].columns
  end
end