diff options
Diffstat (limited to 'app/models/solidus_subscriptions/subscription_promotion_rule.rb')
-rw-r--r-- | app/models/solidus_subscriptions/subscription_promotion_rule.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/solidus_subscriptions/subscription_promotion_rule.rb b/app/models/solidus_subscriptions/subscription_promotion_rule.rb index 7a8cc55..9a76136 100644 --- a/app/models/solidus_subscriptions/subscription_promotion_rule.rb +++ b/app/models/solidus_subscriptions/subscription_promotion_rule.rb @@ -1,5 +1,5 @@ module SolidusSubscriptions - class SubscriptionPromotionRule < Spree::PromotionRule + class SubscriptionPromotionRule < ::Spree::PromotionRule # Promotion can be applied to an entire order. Will only be true # for Spree::Order # @@ -8,7 +8,7 @@ module SolidusSubscriptions # # @return [Boolean] def applicable?(promotable) - promotable.is_a? Spree::Order + promotable.is_a? ::Spree::Order end # An order is eligible if it contains a line item with an associates |