Rails: difference between ENV.fetch() and ENV[]
The ENV hash-like object is plain Ruby, not part of Rails. From the fine ENV#[] manual: Retrieves the value for environment variable name as a String. Returns nil if the named variable does not exist. and the fine ENV#fetch manual: Retrieves the environment variable name. If the given name does not exist and neither default … Read more