Ruby

Ruby

Made by DeepSource

Rails.env predicate does not exist RB-RL1056

Bug risk
Major

Environments 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.

Bad practice

Rails.env.proudction?

Recommended

Rails.env.production?