mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
70e684a681
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.) |
||
---|---|---|
.. | ||
abstract | ||
activerecord | ||
assertions | ||
controller | ||
dispatch | ||
fixtures | ||
journey | ||
lib/controller | ||
routing | ||
template | ||
tmp | ||
abstract_unit.rb | ||
active_record_unit.rb | ||
ts_isolated.rb |