Exception: SolidusPromotions::DiscountedAmount::NotCalculatingPromotions

Inherits:
StandardError
  • Object
show all
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

Constructor Details

#initializeNotCalculatingPromotions

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