add query methods to RAILS_ENV, +1's needed.

Ticket: http://dev.rubyonrails.org/ticket/10583

It would be nice if RAILS_ENV supported .development?, .test?,
and .production?

For example, I could do caches_pages :index if RAILS_ENV.development?
instead of caches_pages :index if RAILS_ENV == "development"

This can be very helpful in helping remove bugs such as the following
typo:

caches_pages :index if RAILS_ENV == "developnent"

-1

Set your environment specific settings in the environment specific
file. e.g. in development.rb:

SPECIAL_CACHING = true

so you say:

caches_pages :index if SPECIAL_CACHING

Knowing too much about your environment will encourage treating
environments differently. It deserves to be a hassle.