diff options
author | Xavier Noria <fxn@hashref.com> | 2011-06-08 00:22:36 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-06-08 00:22:36 +0200 |
commit | a1e78cfc36960569cf8cd380d9656ac6c14015ae (patch) | |
tree | bb2bcd984f3ceb89eeb3dbb295c4c149db0bf266 /railties/guides/source/caching_with_rails.textile | |
parent | 97036eb5ba8012c80925ea94b0bb43647c78c905 (diff) | |
parent | 645f003be724502f87d0c6767dc97aaa982bad42 (diff) | |
download | rails-a1e78cfc36960569cf8cd380d9656ac6c14015ae.tar.gz rails-a1e78cfc36960569cf8cd380d9656ac6c14015ae.tar.bz2 rails-a1e78cfc36960569cf8cd380d9656ac6c14015ae.zip |
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'railties/guides/source/caching_with_rails.textile')
-rw-r--r-- | railties/guides/source/caching_with_rails.textile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile index cebf49573d..f058dce42b 100644 --- a/railties/guides/source/caching_with_rails.textile +++ b/railties/guides/source/caching_with_rails.textile @@ -112,7 +112,7 @@ As an example, if you wanted to show all the orders placed on your website in re <ruby> <% Order.find_recent.each do |o| %> - <%= o.buyer.name %> bought <% o.product.name %> + <%= o.buyer.name %> bought <%= o.product.name %> <% end %> <% cache do %> @@ -162,17 +162,17 @@ class ProductSweeper < ActionController::Caching::Sweeper # If our sweeper detects that a Product was created call this def after_create(product) - expire_cache_for(product) + expire_cache_for(product) end # If our sweeper detects that a Product was updated call this def after_update(product) - expire_cache_for(product) + expire_cache_for(product) end # If our sweeper detects that a Product was deleted call this def after_destroy(product) - expire_cache_for(product) + expire_cache_for(product) end private |