mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-06-01 00:00:30 -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
|
||||
# string match for it.
|
||||
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
|
||||
id = nil
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user