1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Jamis Buck 70e684a681 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.)
2013-01-08 11:20:47 -07:00
..
abstract Remove unnecessary begin..rescue..end, use only rescue 2013-01-06 15:41:14 +09:00
activerecord cleanup, remove trailing whitespace within actionpack 2012-10-27 16:03:18 +02:00
assertions
controller view_cache_dependency API 2013-01-08 11:20:47 -07:00
dispatch Needless requires 2013-01-06 23:59:11 +09:00
fixtures Do not generate local vars for partials without object or collection 2013-01-08 09:15:20 -02:00
journey Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
lib/controller Add HTML5 input[type="color"] helper 2012-05-21 17:23:48 -03:00
routing
template view_cache_dependency API 2013-01-08 11:20:47 -07:00
tmp
abstract_unit.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00
active_record_unit.rb we're not supporting SQLite 2 2012-12-24 12:23:39 +09:00
ts_isolated.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00