app/models/discount.rb in artfully_ose-1.3.0.pre3 vs app/models/discount.rb in artfully_ose-1.3.0.pre4

- old
+ new

@@ -55,9 +55,13 @@ type.apply_discount_to_cart @cart.save! end end + def calculate_discount_for(ticket_type) + self.ticket_types.include?(ticket_type.name) ? type.calculate_discounted_price(ticket_type.price) : ticket_type.price + end + def ensure_properties_are_set type.validate end def ensure_discount_is_destroyable