Skip to content

Commit c3e9d3e

Browse files
committed
Fix deprecation warning on Faraday::Connection#authorization
Fixes #59 > WARNING: `Faraday::Connection#authorization` is deprecated; it will be removed in version 2.0. > While initializing your connection, use `#request(:authorization, ...)` instead. > See https://lostisland.github.io/faraday/middleware/authentication for more usage info.
1 parent d829ed1 commit c3e9d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dwolla_v2/token.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def inspect
5353

5454
def conn
5555
@conn ||= Faraday.new do |f|
56-
f.authorization :Bearer, access_token if access_token
56+
f.request :authorization, 'Bearer', access_token if access_token
5757
f.headers[:accept] = "application/vnd.dwolla.v1.hal+json"
5858
f.request :multipart
5959
f.request :json

0 commit comments

Comments
 (0)