lib/rforce/binding.rb in rforce-0.12 vs lib/rforce/binding.rb in rforce-0.13

- old
+ new

@@ -134,9 +134,11 @@ # Call a method on the remote server. Arguments can be # a hash or (if order is important) an array of alternating # keys and values. def call_remote(method, args) + @server ||= create_server(@url) + # Different URI requirements for regular vs. OAuth. This is # *screaming* for a refactor. fallback_soap_url = @oauth ? @url.to_s : @url.path urn, soap_url = block_given? ? yield : ["urn:partner.soap.sforce.com", fallback_soap_url]