mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-06-05 00:01:07 -04:00
Comment for clarity
This commit is contained in:
parent
d1bceb0041
commit
40405669e2
@ -18,6 +18,7 @@ module Stripe
|
|||||||
# For the sake of not breaking folks who pass in an OAuth key in opts, let's lurkily
|
# For the sake of not breaking folks who pass in an OAuth key in opts, let's lurkily
|
||||||
# string match for it.
|
# string match for it.
|
||||||
if opts == {} && id.is_a?(String) && id.start_with?('sk_')
|
if opts == {} && id.is_a?(String) && id.start_with?('sk_')
|
||||||
|
# `super` properly assumes a String opts is the apiKey and normalizes as expected.
|
||||||
opts = id
|
opts = id
|
||||||
id = nil
|
id = nil
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user