Skip to content

Commit 20e1482

Browse files
authored
fix: add check for Faraday version (#485)
1 parent 0724d68 commit 20e1482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algolia/transport/transport.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'faraday'
22
# this is the default adapter and it needs to be required to be registered.
3-
require 'faraday/net_http_persistent'
3+
require 'faraday/net_http_persistent' unless Faraday::VERSION < '1'
44

55
module Algolia
66
module Transport

0 commit comments

Comments
 (0)