Got rid of RAILS_ROOT and repalced with Rails.root for Rails 3.2 support