3

I recently introduced a bug that only rears its head in development due to cache_classes being set to false. I'd like to write a test to ensure that doesn't happen again, and I am trying to do so by setting cache_classes to false at the beginning of the test. Is there any way to change this, or any other config value, after initialization?

A second, somewhat related question: If I wanted to see the value of cache_classes (or, again, any other config value) in the console, how would I go about doing that?

1 Answer 1

2
[$]nicolas@nicolas-desktop:[git:master] /home/nicolas/project-> rails c
  Loading development environment (Rails 3.0.1)
  ree-1.8.7-2010.02 > Rails.configuration.cache_classes
  false
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.