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.
177 178 179 |
# File 'lib/active_scaffold/tableless.rb', line 177 def initialize(key) @key = key end |
Instance Method Details
#execute(values, model, connection) ⇒ Object
181 182 183 |
# File 'lib/active_scaffold/tableless.rb', line 181 def execute(values, model, connection) model.where(@key => values) end |