When I load rails (rails s
) the first line that shows up in the terminal is:
DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s. (called from /Users/x/Sites/x/config/application.rb:7)
I have been unable to isolate where this is being used.
Line 7 mentioned above is:
Bundler.require(:default, Rails.env) if defined?(Bundler)
Does anyone have any suggestion?
One of your gems is using RAILS_ROOT
in its initialization code.
From your app's bundle directory, try: grep -R RAILS_ROOT .
(If you are using RVM, the bundle directory will be in ~/.rvm/gems
; otherwise it may be .bundle
within your app's main directory.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With