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?
The string
-W:no-deprecated -W:no-experimentaldidn't work for me, but-W0did, which I found at stackoverflow.com/a/59594760/1049688You 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.rbOn method #1 (using dotenv-rails), the line to add to
.envshould read:as the
dotenv-railsgem will take care to export it.None of these worked for me.
Did you reload your zshrc/bashrc or reload your terminal?
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!