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 =
<<~MSG You're trying to call `#current_lane_discounts` without a current lane being set on `SolidusPromotions::PromotionLane. In order to set a current lane, wrap your call into a `PromotionLane.set` block: ``` SolidusPromotions::PromotionLane.set(current_lane: "default") do # YOUR CODE HERE end ``` MSG
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 |