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"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to