diff options
author | Aditya Chadha <aditya@sublucid.com> | 2008-12-27 02:50:30 -0500 |
---|---|---|
committer | Aditya Chadha <aditya@sublucid.com> | 2008-12-27 02:50:30 -0500 |
commit | dce642f22ab5788d25dcbca4e81d7faa8de73da8 (patch) | |
tree | 3ba2ef6a53817bef71193824f8b64925016b1417 /railties/doc/guides/source | |
parent | d49fa21a0318c75a30b52e7d68ee3338f1fdf429 (diff) | |
download | rails-dce642f22ab5788d25dcbca4e81d7faa8de73da8.tar.gz rails-dce642f22ab5788d25dcbca4e81d7faa8de73da8.tar.bz2 rails-dce642f22ab5788d25dcbca4e81d7faa8de73da8.zip |
Fixed typo
Diffstat (limited to 'railties/doc/guides/source')
-rw-r--r-- | railties/doc/guides/source/caching_with_rails.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/doc/guides/source/caching_with_rails.txt b/railties/doc/guides/source/caching_with_rails.txt index 16dac19e08..6da67ed481 100644 --- a/railties/doc/guides/source/caching_with_rails.txt +++ b/railties/doc/guides/source/caching_with_rails.txt @@ -214,19 +214,19 @@ sweeper such as the following: [source, ruby] ----------------------------------------------------- class StoreSweeper < ActionController::Caching::Sweeper - observe Product # This sweeper is going to keep an eye on the Post model + observe Product # This sweeper is going to keep an eye on the Product model - # If our sweeper detects that a Post was created call this + # If our sweeper detects that a Product was created call this def after_create(product) expire_cache_for(product) end - # If our sweeper detects that a Post was updated call this + # If our sweeper detects that a Product was updated call this def after_update(product) expire_cache_for(product) end - # If our sweeper detects that a Post was deleted call this + # If our sweeper detects that a Product was deleted call this def after_destroy(product) expire_cache_for(product) end |