n8 / multi_fetch_fragments

Multi-fetch Fragments makes rendering and caching a collection of template partials easier and faster.
http://ninjasandrobots.com/rails-faster-partial-rendering-and-caching
MIT License
539 stars 63 forks source link

Fix for cache_options issue #23

Closed robotmay closed 11 years ago

robotmay commented 11 years ago

Not sure if it's just in Rails 4, but the cache_options key is no longer available under @options, but instead @locals, so I've modified the code to check both.

Initially raised in issue #22