changed RAILS_ROOT to Rails.root for Rails 3.2 support