app/services/tang/update_customer.rb in tang-0.2.0 vs app/services/tang/update_customer.rb in tang-0.2.1
- old
+ new
@@ -7,10 +7,10 @@
begin
c = Stripe::Customer.retrieve(customer.stripe_id)
c = populate_customer(c, customer)
c.save
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