Use Rails.env instead of RAILS_ENV