lib/restful_resource/base.rb in restful_resource-2.2.1 vs lib/restful_resource/base.rb in restful_resource-2.2.2
- old
+ new
@@ -5,18 +5,20 @@
def self.configure(base_url: nil,
username: nil,
password: nil,
logger: nil,
cache_store: nil,
- instrumentation: {})
+ instrumentation: {},
+ faraday_config: nil)
@base_url = URI.parse(base_url)
@http = RestfulResource::HttpClient.new(username: username,
password: password,
logger: logger,
cache_store: cache_store,
- instrumentation: instrumentation)
+ instrumentation: instrumentation,
+ faraday_config: faraday_config)
end
def self.resource_path(url)
@resource_path = url
end