use Rails.env which accounts for missing environment variables