Rails.env
predicate does not exist RB-RL1056Environments called with Rails.env
should exist.
The default values are development
, test
and production
. More can be added in the Environments
array in .rubocop.yml
.
Rails.env.proudction?
Rails.env.production?