mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-09-22 00:00:31 -04:00
This needs to be a respond_to? instead.
This commit is contained in:
parent
bc43fff551
commit
51af58c947
@ -5,9 +5,9 @@ module Stripe
|
||||
include Stripe::APIOperations::List
|
||||
|
||||
def url
|
||||
if recipient
|
||||
if respond_to?(:recipient)
|
||||
"#{Recipient.url}/#{CGI.escape(recipient)}/cards/#{CGI.escape(id)}"
|
||||
elsif customer
|
||||
elsif respond_to?(:customer)
|
||||
"#{Customer.url}/#{CGI.escape(customer)}/cards/#{CGI.escape(id)}"
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user