lib/access/response.rb in access-2.0.49 vs lib/access/response.rb in access-2.0.50

- old
+ new

@@ -55,9 +55,13 @@ @offer_count_in_categories = Access::Aggregations.process_batch(@offer_count_in_categories) if @offer_count_in_categories @offer_count_by_redemption_method = Access::Aggregations.process_batch(@offer_count_by_redemption_method) if @offer_count_by_redemption_method @offer_count_by_facet = Access::Aggregations.process_batch(@offer_count_by_facet) if @offer_count_by_facet @custom_aggregation = Access::Aggregations.process_batch(@custom_aggregation) if @custom_aggregation end + + def used_fields + offers.flat_map(&:used_fields).compact.uniq + end end class StoreResponse < Response def process_data (@stores = []; create_error) if @message