title: How do I access a Rails configuration value during runtime?
body: <p>I'm using Rails 2.3.x.  I would like a small section of code to run if and only if the <code>config.cache_classes</code> is true.  By default, that's true for production and false for development.</p>
  
  <p>How do I access the value of config.cache_classes from outside of my environment.rb, development.rb, and production.rb files?  It's easy to tell if we are in production or development, <code>Rails.env</code> will give us the answer.  But there's no guarantee the developer hasn't set <code>config.cache_classes = true</code> in development.</p>
  
  <p>I certainly understand that you do not generally want to run separate code paths in development and production.  In this particular instance, we are simply not performing some work on startup; if we need to perform it later, we will do so, both in development and production.</p>