【问题标题】:Rails Neo4j neo4j.config.session_path is deprecated, please use neo4j.config.session.pathRails Neo4j neo4j.config.session_path 已弃用,请使用 neo4j.config.session.path
【发布时间】:2017-11-23 13:34:03
【问题描述】:

我无法理解这个错误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

【问题讨论】:

    标签: ruby-on-rails neo4j


    【解决方案1】:

    您应该会在您的应用程序的某处找到neo4j.config.session_path。也许搜索 / grep 呢?我希望找到它的地方是:

    配置/应用程序.rb 配置/环境/development.rb 配置/环境/test.rb config/environments/production.rb

    另外,我会确保阅读 upgrade guide 以了解从 7.x 升级到 8.x/9.x 时可能出现的问题

    【讨论】:

      猜你喜欢
      • 2015-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-03
      • 1970-01-01
      相关资源
      最近更新 更多