lib/acumatica/client.rb in acumatica-0.1.3 vs lib/acumatica/client.rb in acumatica-0.2.0
- old
+ new
@@ -13,10 +13,10 @@
def connection
@connection ||= Faraday.new do |conn|
conn.request :json
- if token.present?
+ if token
conn.request :oauth2, token
else
conn.use :cookie_jar
end