core/app/models/spree/calculator/percent_per_item.rb
def matching_products
      @matching_products ||= if compute_on_promotion?
        self.calculable.promotion.rules.map(&:products).flatten
      end
    end
# Returns all products that match the promotion's rule. 
Returns all products that match the promotion's rule.
Returns all products that match the promotion ' s rule .
def matching_products
      @matching_products ||= if compute_on_promotion?
        self.calculable.promotion.rules.map(&:products).flatten
      end
    end
def matching_products @matching_products ||= if compute_on_promotion? self . calculable . promotion . rules . map ( & :products ) . flatten end end
Returns all products that match the promotion's rule.
Returns all products that match the promotion ' s rule .