mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-09-22 00:00:31 -04:00
Merge pull request #110 from stripe/allow-expanding-on-save
Allow save to take opts
This commit is contained in:
commit
11ed3d2d32
@ -1,8 +1,8 @@
|
||||
module Stripe
|
||||
module APIOperations
|
||||
module Update
|
||||
def save
|
||||
values = serialize_params(self)
|
||||
def save(opts={})
|
||||
values = serialize_params(self).merge(opts)
|
||||
|
||||
if @values[:metadata]
|
||||
values[:metadata] = serialize_metadata
|
||||
|
Loading…
x
Reference in New Issue
Block a user