lib/neo4j/railtie.rb in neo4j-7.0.13 vs lib/neo4j/railtie.rb in neo4j-7.0.14
- old
+ new
@@ -68,14 +68,11 @@
Rails.root.join(path)
end.detect(&:exist?)
end
def default_session_type
- if ENV['NEO4J_TYPE']
- :embedded_db
- else
- config_data[:type] || :server_db
- end.to_sym
+ type = ENV['NEO4J_TYPE'] || config_data[:type] || :server_db
+ type.to_sym
end
def default_session_path
ENV['NEO4J_URL'] || ENV['NEO4J_PATH'] ||
config_data[:url] || config_data[:path] ||