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

- old
+ new

@@ -3,10 +3,10 @@ def self.call(customer) begin cu = Stripe::Customer.retrieve(customer.stripe_id) cu.delete_discount rescue Stripe::StripeError => e - customer.errors[:base] << e.message + customer.errors.add(:base, :invalid, message: e.message) end customer.update(coupon: nil, coupon_start: nil) return customer \ No newline at end of file