Replaced RAILS_ENV with Rails.env
https://github.com/PRX/apn_on_rails/pull/25