indirect/rails3-generators — pull request #18 by sespindola (2012-04-07 02:20:09+00:00)
Title: Replace RAILS_ROOT and RAILS_ENV constants with Rails.root and Rails.env

Since Rails 3.1 RAILS_ROOT and RAILS_ENV are no longer defined.
I've search for occurrences of these variables and replaced them.