lib/neo4j/railtie.rb in neo4j-8.0.3 vs lib/neo4j/railtie.rb in neo4j-8.0.4
- old
+ new
@@ -60,19 +60,20 @@
config.app_middleware.insert_after ::ActionDispatch::Callbacks, Neo4j::Migrations::CheckPending
end
end
def setup!(neo4j_config = empty_config)
- type, url, path, options, wait_for_connection = final_config!(neo4j_config).values_at(:type, :url, :path, :options, :wait_for_connection)
+ wait_for_connection = neo4j_config.wait_for_connection
+ type, url, path, options = final_session_config!(neo4j_config).values_at(:type, :url, :path, :options)
register_neo4j_cypher_logging(type || default_session_type)
Neo4j::SessionManager.open_neo4j_session(type || default_session_type,
url || path || default_session_path_or_url,
wait_for_connection,
options || {})
end
- def final_config!(neo4j_config)
+ def final_session_config!(neo4j_config)
support_deprecated_session_configs!(neo4j_config)
neo4j_config.session.empty? ? yaml_config_data : neo4j_config.session
end