lib/stripe/api_operations/update.rb in stripe-1.8.1 vs lib/stripe/api_operations/update.rb in stripe-1.8.2
- old
+ new
@@ -3,9 +3,10 @@
module Update
def save
if @unsaved_values.length > 0
values = {}
@unsaved_values.each { |k| values[k] = @values[k] }
+ values.delete(:id)
response, api_key = Stripe.request(:post, url, @api_key, values)
refresh_from(response, api_key)
end
self
end