Closed denzelem closed 4 years ago
Just for documentation purpose: This cop seems to help avoiding errors like Users.delete_all unless Rails.env.producton?
, because this will return false
even if it is a typo.
Changed in 6315f692c42ac9afa028824d3b10be8e23245a28 and released in 4.1.0
.
https://github.com/rubocop-hq/rubocop/issues/4956 https://www.rubydoc.info/gems/rubocop/0.53.0/RuboCop/Cop/Rails/UnknownEnv
Example:
Fix:
I would like to disable this cop, this seems not be useful for us.