-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. On Dec 20, 8:31 pm, Jay <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
