Use Rails.root instead of deprecated RAILS_ROOT