Class: ActiveScaffold::Tableless::StatementCache
- Defined in:
- lib/active_scaffold/tableless.rb
Instance Method Summary collapse
- #execute(values, model, connection) ⇒ Object
-
#initialize(key) ⇒ StatementCache
constructor
A new instance of StatementCache.
Constructor Details
#initialize(key) ⇒ StatementCache
Returns a new instance of StatementCache.
148 149 150 |
# File 'lib/active_scaffold/tableless.rb', line 148 def initialize(key) @key = key end |
Instance Method Details
#execute(values, model, connection) ⇒ Object
152 153 154 |
# File 'lib/active_scaffold/tableless.rb', line 152 def execute(values, model, connection) model.where(@key => values) end |