diff options
author | claudiob <claudiob@gmail.com> | 2015-01-06 12:32:27 -0800 |
---|---|---|
committer | claudiob <claudiob@gmail.com> | 2015-01-06 12:32:27 -0800 |
commit | 283326cc61335ec62692dc550e460bb7e20b13b1 (patch) | |
tree | 8746e4586518753f026ab3710f6dee4c03409d1a /activesupport/test/autoloading_fixtures | |
parent | 9fe8e19af1db5fe82c83c9af9afc7f59883ee4e4 (diff) | |
download | rails-283326cc61335ec62692dc550e460bb7e20b13b1.tar.gz rails-283326cc61335ec62692dc550e460bb7e20b13b1.tar.bz2 rails-283326cc61335ec62692dc550e460bb7e20b13b1.zip |
Better examples for fresh_when and stale?
It is clearer and closer to reality to use `@article.updated_at` as
the `:last_modified` parameter of `fresh_when` and `stale?`.
Using `@article.created_at` would result in the cache never expiring,
since the creation timestamp never changes.
[ci skip]
Diffstat (limited to 'activesupport/test/autoloading_fixtures')
0 files changed, 0 insertions, 0 deletions