diff options
author | Jamis Buck <jamis@37signals.com> | 2013-01-08 11:20:47 -0700 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2013-01-08 11:20:47 -0700 |
commit | 70e684a681352e95fb990747ef6dd7183da333a8 (patch) | |
tree | 59ea8b888d7bc9c99cdcfab3ad4bf0f346244054 /actionpack/test/abstract/views | |
parent | ac86cbec82acee18a5066e00b98d1c20fc677a15 (diff) | |
download | rails-70e684a681352e95fb990747ef6dd7183da333a8.tar.gz rails-70e684a681352e95fb990747ef6dd7183da333a8.tar.bz2 rails-70e684a681352e95fb990747ef6dd7183da333a8.zip |
view_cache_dependency API
A declarative API for specifying dependencies that affect template
cache digest computation. In your controller, specify any of said
dependencies:
view_cache_dependency { "phone" if using_phone? }
When the block is evaluated, the resulting value is included in the
cache digest calculation, allowing you to generate different digests
for effectively the same template. (Mostly useful if you're mucking
with template load paths.)
Diffstat (limited to 'actionpack/test/abstract/views')
0 files changed, 0 insertions, 0 deletions