summaryrefslogtreecommitdiff
path: root/app/models/solidus_subscriptions/subscription_line_item_builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/solidus_subscriptions/subscription_line_item_builder.rb')
-rw-r--r--app/models/solidus_subscriptions/subscription_line_item_builder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/solidus_subscriptions/subscription_line_item_builder.rb b/app/models/solidus_subscriptions/subscription_line_item_builder.rb
index df377ba..ab43c78 100644
--- a/app/models/solidus_subscriptions/subscription_line_item_builder.rb
+++ b/app/models/solidus_subscriptions/subscription_line_item_builder.rb
@@ -8,8 +8,8 @@ module SolidusSubscriptions
)
# Rerun the promotion handler to pickup subscription promotions
- Spree::PromotionHandler::Cart.new(line_item.order).activate
- if Spree.solidus_gem_version >= Gem::Version.new('2.4.0')
+ ::Spree::PromotionHandler::Cart.new(line_item.order).activate
+ if ::Spree.solidus_gem_version >= Gem::Version.new('2.4.0')
line_item.order.recalculate
else
line_item.order.update!