Exception: SolidusPromotions::DiscountedAmount::NotCalculatingPromotions
- Inherits:
-
StandardError
- Object
- StandardError
- SolidusPromotions::DiscountedAmount::NotCalculatingPromotions
- Defined in:
- app/models/concerns/solidus_promotions/discounted_amount.rb
Constant Summary collapse
- DEFAULT_MESSAGE =
"You're trying to call `#current_lane_discounts` without a current lane being set on `SolidusPromotions::PromotionLane.\nIn order to set a current lane, wrap your call into a `PromotionLane.set` block:\n```\nSolidusPromotions::PromotionLane.set(current_lane: \"default\") do\n # YOUR CODE HERE\nend\n```\n"
Instance Method Summary collapse
-
#initialize ⇒ NotCalculatingPromotions
constructor
A new instance of NotCalculatingPromotions.
Constructor Details
#initialize ⇒ NotCalculatingPromotions
Returns a new instance of NotCalculatingPromotions.
16 17 18 |
# File 'app/models/concerns/solidus_promotions/discounted_amount.rb', line 16 def initialize super(DEFAULT_MESSAGE) end |