Skip to content

Commit cd69c0e

Browse files
Merge pull request #60 from javierjulio/fix-faraday-deprecation
Fix deprecation warning on Faraday::Connection#authorization
2 parents d829ed1 + 6facc4b commit cd69c0e

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)