Change deprecated RAILS_ROOT and RAILS_ENV to Rails.root and Rails.env
Also here
Merge pull request #3 from JustinAiken/master

Remove deprecated RAILS CONSTANTS