mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-05-30 00:00:47 -04:00
Rename @@opts_to_persist
This commit is contained in:
parent
592e503c85
commit
3cbc60f35c
@ -2,7 +2,7 @@ module Stripe
|
||||
module APIOperations
|
||||
module Request
|
||||
module ClassMethods
|
||||
@@opts_to_persist = Set.new([:api_key, :api_base, :stripe_account, :stripe_version])
|
||||
OPTS_KEYS_TO_PERSIST = Set[:api_key, :api_base, :stripe_account, :stripe_version]
|
||||
|
||||
def request(method, url, params={}, opts={})
|
||||
opts = Util.normalize_opts(opts)
|
||||
@ -17,7 +17,7 @@ module Stripe
|
||||
# Hash#select returns an array before 1.9
|
||||
opts_to_persist = {}
|
||||
opts.each do |k, v|
|
||||
if @@opts_to_persist.include?(k)
|
||||
if OPTS_KEYS_TO_PERSIST.include?(k)
|
||||
opts_to_persist[k] = v
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user