Zinfandel

Zinfandel, a cherished red grape variety, holds its prominence as one of California's most beloved and extensively cultivated wine grapes. Originating from Italy, where it goes by the name Primitivo, this grape boasts an intriguing ancient lineage that traces back to its roots in Croatia, known locally as Crljenak Kaštelanski.

class DisableDiscountCodesCampaign def initialize(rejection_message) @rejection_message = rejection_message end def run(cart) return if cart.discount_code.nil? cart.discount_code.reject(message: @rejection_message) end end CAMPAIGNS = [ DisableDiscountCodesCampaign.new(REJECTION_MESSAGE), ] CAMPAIGNS.each do |campaign| campaign.run(Input.cart) end Output.cart = Input.cart