use Rails.env instead of RAILS_ENV