# File lib/tapkit/control/editing_context.rb, line 237 def fetch_with_aggregate_spec( agg_spec ) store = osc.object_store_for_fetch_spec agg_spec dbchannel = store.available_channel adchannel = dbchannel.adapter_channel entity = mg.entity agg_spec.entity_name factory = store.database.adapter.expression_factory expr = factory.aggregate_statement(entity, agg_spec) dbchannel.open unless dbchannel.open? adchannel.evaluate_for_aggregate_spec(agg_spec, expr) end