diff --git a/promo/app/models/spree/order_decorator.rb b/promo/app/models/spree/order_decorator.rb index 80939cd564b..3961c31240a 100644 --- a/promo/app/models/spree/order_decorator.rb +++ b/promo/app/models/spree/order_decorator.rb @@ -10,7 +10,7 @@ def products line_items.map {|li| li.variant.product} end - unless self.instance_methods.include?('update_adjustments_with_promotion_limiting') + unless self.method_defined?('update_adjustments_with_promotion_limiting') def update_adjustments_with_promotion_limiting update_adjustments_without_promotion_limiting return if adjustments.promotion.eligible.none?