using Rails.env.production? instead of Rails.env == 'production'