rails/jbuilder — pull request #67 by rgarver (2012-09-25 21:10:59+00:00)
Title: Adjust caching to use ActionView::Base#cache

In an attempt to leverage some of the Rails primitives better I took a stab at refactoring the #cache! method to use the ActionView caching system instead of the Rails caching system directly. The hope is that this will enable support for cache_digests. Based on my initial tests it already honors the controller.perform_caching which makes sense for this. Any feed back on code here would be appreciated since I needed to get a little nasty with the output buffer to make it work.