lib/neo4j/session_manager.rb in neo4j-8.0.0.alpha.7 vs lib/neo4j/session_manager.rb in neo4j-8.0.0.alpha.8
- old
+ new
@@ -29,24 +29,9 @@
restricted_field = security_class.get_declared_field('isRestricted')
restricted_field.accessible = true
restricted_field.set nil, false
end
- def config_data
- @config_data ||= if yaml_path
- HashWithIndifferentAccess.new(YAML.load(ERB.new(yaml_path.read).result)[Rails.env])
- else
- {}
- end
- end
-
- def yaml_path
- return unless defined?(Rails)
- @yaml_path ||= %w(config/neo4j.yml config/neo4j.yaml).map do |path|
- Rails.root.join(path)
- end.detect(&:exist?)
- end
-
# TODO: Deprecate embedded_db and http in favor of embedded and http
#
def cypher_session_adaptor(type, path_or_url, options = {})
case type
when :embedded_db, :embedded