From 3b28dbcabc55753d06fb137451e551a8ed09c4ce Mon Sep 17 00:00:00 2001 From: Brian Underwood Date: Mon, 13 Mar 2017 22:14:58 -0400 Subject: [PATCH] Don't need to use initialize key. Should just pass faraday options directly --- lib/neo4j/core/cypher_session/adaptors/http.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/neo4j/core/cypher_session/adaptors/http.rb b/lib/neo4j/core/cypher_session/adaptors/http.rb index 1c9d61a8..7922f272 100644 --- a/lib/neo4j/core/cypher_session/adaptors/http.rb +++ b/lib/neo4j/core/cypher_session/adaptors/http.rb @@ -16,7 +16,7 @@ def initialize(url, options = {}) end def connect - @requestor = Requestor.new(@url, USER_AGENT_STRING, self.class.method(:instrument_request), @options[:faraday_options] ||= {}) + @requestor = Requestor.new(@url, USER_AGENT_STRING, self.class.method(:instrument_request), @options.fetch(:faraday_options, {})) end ROW_REST = %w(row REST) @@ -106,7 +106,7 @@ def initialize(url, user_agent_string, instrument_proc, faraday_options = {}) @user = user @password = password @user_agent_string = user_agent_string - @faraday = wrap_connection_failed! { faraday_connection(faraday_options.fetch(:initialize, {})) } + @faraday = wrap_connection_failed! { faraday_connection(faraday_options) } @instrument_proc = instrument_proc end