Class: SurveySectionSweeper
- Inherits:
-
ActionController::Caching::Sweeper
- Object
- ActionController::Caching::Sweeper
- SurveySectionSweeper
- Defined in:
- app/models/survey_section_sweeper.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) after_destroy(section)
8 9 10 |
# File 'app/models/survey_section_sweeper.rb', line 8 def after_destroy(section) expire_cache(section) end |
- (Object) after_save(section)
4 5 6 |
# File 'app/models/survey_section_sweeper.rb', line 4 def after_save(section) expire_cache(section) end |
- (Object) expire_cache(section)
12 13 14 |
# File 'app/models/survey_section_sweeper.rb', line 12 def expire_cache(section) expire_fregment "section_#{section.id}" end |