Class: ProductSweeper
- Inherits:
-
ActionController::Caching::Sweeper
- Object
- ActionController::Caching::Sweeper
- ProductSweeper
- Defined in:
- app/models/product_sweeper.rb
Instance Method Summary collapse
Instance Method Details
#after_create(record) ⇒ Object
8 9 10 |
# File 'app/models/product_sweeper.rb', line 8 def after_create(record) expire_cache_for(record) end |
#after_save(record) ⇒ Object
4 5 6 |
# File 'app/models/product_sweeper.rb', line 4 def after_save(record) expire_cache_for(record) end |
#before_destroy(record) ⇒ Object
12 13 14 |
# File 'app/models/product_sweeper.rb', line 12 def before_destroy(record) expire_cache_for(record) end |