Class: WidgetSweeper
- Inherits:
-
ActionController::Caching::Sweeper
- Object
- ActionController::Caching::Sweeper
- WidgetSweeper
- Defined in:
- lib/generators/sunrise/widgets/templates/widget_sweeper.rb
Instance Method Summary collapse
Instance Method Details
#after_create(item) ⇒ Object
4 5 6 |
# File 'lib/generators/sunrise/widgets/templates/widget_sweeper.rb', line 4 def after_create(item) expire(item) end |
#after_destroy(item) ⇒ Object
12 13 14 |
# File 'lib/generators/sunrise/widgets/templates/widget_sweeper.rb', line 12 def after_destroy(item) expire(item) end |
#after_update(item) ⇒ Object
8 9 10 |
# File 'lib/generators/sunrise/widgets/templates/widget_sweeper.rb', line 8 def after_update(item) expire(item) end |