Class: Mochigome::ColumnsHashProxy
- Inherits:
-
Object
- Object
- Mochigome::ColumnsHashProxy
- Defined in:
- lib/arel_rails2_hacks.rb
Instance Method Summary collapse
- #[](table_name) ⇒ Object
-
#initialize(pool) ⇒ ColumnsHashProxy
constructor
A new instance of ColumnsHashProxy.
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 |