app/services/tang/apply_customer_discount.rb in tang-0.2.0 vs app/services/tang/apply_customer_discount.rb in tang-0.2.1

- old
+ new

@@ -9,10 +9,10 @@ start = cu.discount.start.to_s start_timestamp = DateTime.strptime(start, '%s') customer.update(coupon: coupon, coupon_start: start_timestamp) rescue Stripe::StripeError => e - customer.errors[:base] << e.message + customer.errors.add(:base, :invalid, message: e.message) end end return customer end \ No newline at end of file