lib/stripe/bitcoin_receiver.rb in stripe-1.32.0 vs lib/stripe/bitcoin_receiver.rb in stripe-1.32.1

- old
+ new

@@ -8,10 +8,10 @@ def self.url "/v1/bitcoin/receivers" end def url - if respond_to?(:customer) + if respond_to?(:customer) && !self.customer.nil? "#{Customer.url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}" else "#{self.class.url}/#{CGI.escape(id)}" end end