繁体   English   中英

Rails Neo4j neo4j.config.session_path已弃用,请使用neo4j.config.session.path

[英]Rails Neo4j neo4j.config.session_path is deprecated, please use neo4j.config.session.path

我不明白此错误neo4j.config.session_path is deprecated, please use neo4j.config.session.path. 我在测试过程中在myspec文件中得到了这个。 我将Neo4j从7更新到了版本9,现在已经弃用了。 我不明白该怎么办,因为我找不到哪条线已被弃用。 我在接下来的代码行中遇到错误:

describe "Edit Access" do

before :all do
  Amendment.delete_all
  a = Amendment.create(cid: "X1", namespace: "http://www.example.com", property: "question",
                       study_value: "ADEF", default_value: "A1", datatype: "string")
  a = Amendment.create(cid: "X1", namespace: "http://www.example.com", property: "enabled",
                       study_value: "true", default_value: "true", datatype: "boolean")
  a = Amendment.create(cid: "Y1", namespace: "http://www.example.com", property: "enabled",
                       study_value: "false", default_value: "true", datatype: "boolean")
  ua_create
end

after :all do
  Amendment.delete_all
  ua_destroy
end

您应该在应用程序中的某个位置找到neo4j.config.session_path 也许搜索/ grep呢? 我希望找到的地方是:

config / application.rb config / environments / development.rb config / environments / test.rb config / environments / production.rb

另外,我将确保阅读升级指南,以解决可能从7.x升级到8.x / 9.x的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM