Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

Haven't seen a solution here, but did find one. I wanted to post the question and answer here so that it's available.

like image 979
Richard_G Avatar asked Jun 16 '16 15:06

Richard_G


1 Answers

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.

like image 98
Richard_G Avatar answered Oct 19 '22 20:10

Richard_G