Rails 5: Array values in the parameter to `Gem.paths=` are deprecated

后端 未结 2 1869
攒了一身酷
攒了一身酷 2020-12-29 03:09

Building websockets app based off of actioncable-examples. When starting server, running rake, etc. I keep getting the message:

Array values in the paramet         


        
相关标签:
2条回答
  • 2020-12-29 03:31

    I also face same error in my rails 4.2.7 application and I fixed the error to update bin/spring file line no 11

    Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
    
    0 讨论(0)
  • 2020-12-29 03:34

    I found the answer in RubyGems issue #1551 here. The binstubs, the files in the bin folder, need to be updated. The best way to do this is:

    bundle update spring
    bundle exec spring binstub --remove --all
    bundle exec spring binstub --all
    

    And that resolved the problem for me.

    0 讨论(0)
提交回复
热议问题