RAILS_ENV constant is deprecated, use Rails.env instead.