Class: SettingSweeper

Inherits:
ActionController::Caching::Sweeper
  • Object
show all
Defined in:
app/sweepers/setting_sweeper.rb

Instance Method Summary collapse

Instance Method Details

#after_create(setting) ⇒ Object



4
5
6
# File 'app/sweepers/setting_sweeper.rb', line 4

def after_create(setting)
  PageCache.sweep_all
end

#after_update(setting) ⇒ Object



8
9
10
# File 'app/sweepers/setting_sweeper.rb', line 8

def after_update(setting)
  PageCache.sweep_all
end