lib/access/response.rb in access-2.0.41 vs lib/access/response.rb in access-2.0.42

- old
+ new

@@ -49,38 +49,38 @@ class OfferResponse < Response def process_data # for when you search and it returns 0 (@offers = []; create_error) if @message - @offers = Access::Offer.process_batch(@offers) + @offers = Access::Offer.process_batch(@offers) if @offers @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 end class StoreResponse < Response def process_data (@stores = []; create_error) if @message - @stores = Access::Store.process_batch(@stores) + @stores = Access::Store.process_batch(@stores) if @stores @offer_count_in_categories = Access::Aggregations.process_batch(@offer_count_in_categories) if @offer_count_in_categories @custom_aggregation = Access::Aggregations.process_batch(@custom_aggregation) if @custom_aggregation end end class LocationResponse < Response def process_data (@locations = []; create_error) if @message - @locations = Access::Location.process_batch(@locations) + @locations = Access::Location.process_batch(@locations) if @locations @custom_aggregation = Access::Aggregations.process_batch(@custom_aggregation) if @custom_aggregation end end class CategoryResponse < Response def process_data (@categories = []; create_error) if @message - @categories = Access::Category.process_batch(@categories) + @categories = Access::Category.process_batch(@categories) if @categories end end class AutocompleteResponse < Response def process_data