mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-04 00:01:22 -05:00
Don't add to unsaved values if supposed to be ignored
This commit is contained in:
parent
45a27f714b
commit
758c6c8aa8
@ -245,7 +245,7 @@ module Stripe
|
||||
if name.to_s.end_with?('=')
|
||||
attr = name.to_s[0...-1].to_sym
|
||||
@values[attr] = args[0]
|
||||
@unsaved_values.add(attr)
|
||||
@unsaved_values.add(attr) unless @@ignored_attributes.include?(attr)
|
||||
add_accessors([attr])
|
||||
return
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user