Class: Mochigome::ColumnsHashProxy

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

Instance Method Summary collapse

Constructor Details

#initialize(pool) ⇒ ColumnsHashProxy

Returns a new instance of ColumnsHashProxy.



4
5
6
7
# File 'lib/arel_rails2_hacks.rb', line 4

def initialize(pool)
  @pool = pool
  @cache = HashWithIndifferentAccess.new
end

Instance Method Details

#[](table_name) ⇒ Object



9
10
11
# File 'lib/arel_rails2_hacks.rb', line 9

def [](table_name)
  cached(table_name)
end