I use the cache-money gem for transparent usage of Memcached. Using the supplied config file it is enabled on all modes (development, test, production). Is there a way to only activate cache-money in production mode?
It’s not immediately clear how to do this, and it’s a total pain dealing with caching in development mode.
Thanks to Obie Fernandez for a great offline hint: Stub out cache-money’s #index method to do nothing. This provides a place for the #index statements in the models to go, and stops the error mentioned above.
Here is my full cache_money.rb lib: