app/services/tang/update_plan.rb in tang-0.2.0 vs app/services/tang/update_plan.rb in tang-0.2.1
- old
+ new
@@ -8,10 +8,10 @@
begin
p = Stripe::Plan.retrieve(plan.stripe_id)
p.name = plan.name
p.save
rescue Stripe::StripeError => e
- plan.errors[:base] << e.message
+ plan.errors.add(:base, :invalid, message: e.message)
end
return plan
end
end
\ No newline at end of file