DEV Community

Discussion on: Hiding Ruby 2.7 Deprecation Warnings in Rails 6

Collapse
 
michelegera profile image
Michele Gerarduzzi

On method #1 (using dotenv-rails), the line to add to .env should read:

RUBYOPT='-W:no-deprecated -W:no-experimental'

as the dotenv-rails gem will take care to export it.