Class: TaggableSweeper
- Inherits:
-
ActionController::Caching::Sweeper
- Object
- ActionController::Caching::Sweeper
- TaggableSweeper
- Defined in:
- app/controllers/taggable_sweeper.rb
Instance Method Summary collapse
-
#after_activate(taggable) ⇒ Object
If our sweeper detects that a taggable (User) was activated.
-
#after_create(taggable) ⇒ Object
If our sweeper detects that a taggable was created.
-
#after_destroy(taggable) ⇒ Object
If our sweeper detects that a taggable was deleted.
-
#after_swfupload(photo) ⇒ Object
If our sweeper detects that a photo was uploaded.
-
#after_update(taggable) ⇒ Object
If our sweeper detects that a taggable was updated.
Instance Method Details
#after_activate(taggable) ⇒ Object
If our sweeper detects that a taggable (User) was activated
5 6 7 |
# File 'app/controllers/taggable_sweeper.rb', line 5 def after_activate(taggable) expire_cache_for(taggable) end |
#after_create(taggable) ⇒ Object
If our sweeper detects that a taggable was created
10 11 12 |
# File 'app/controllers/taggable_sweeper.rb', line 10 def after_create(taggable) expire_cache_for(taggable) end |
#after_destroy(taggable) ⇒ Object
If our sweeper detects that a taggable was deleted
25 26 27 |
# File 'app/controllers/taggable_sweeper.rb', line 25 def after_destroy(taggable) expire_cache_for(taggable) end |
#after_swfupload(photo) ⇒ Object
If our sweeper detects that a photo was uploaded
15 16 17 |
# File 'app/controllers/taggable_sweeper.rb', line 15 def after_swfupload(photo) expire_cache_for(taggable) end |
#after_update(taggable) ⇒ Object
If our sweeper detects that a taggable was updated
20 21 22 |
# File 'app/controllers/taggable_sweeper.rb', line 20 def after_update(taggable) expire_cache_for(taggable) end |