Hiding Ruby 2.7 Deprecation Warnings in Rails 6
If you have upgraded your Rails app to Ruby 2.7, you are probably seeing a lot of deprec...
For further actions, you may consider blocking this person and/or reporting abuse
Hi Andrew, i've cloned your repository and still got warnings. What I'm doing wrong?
You can also choose to have depreciation warnings sent to the log file rather than printed out to the console. For example, in the test environment, add the following to
config/environments/test.rb
The string
-W:no-deprecated -W:no-experimental
didn't work for me, but-W0
did, which I found at stackoverflow.com/a/59594760/1049688On method #1 (using dotenv-rails), the line to add to
.env
should read:as the
dotenv-rails
gem will take care to export it.So this is just to silence them within ruby? Wonβt rails internals eventually knock out these warnings?
They will but this will help until that update lands!
None of these worked for me.
Did you reload your zshrc/bashrc or reload your terminal?