Class: AppyantraAdmin::PagesSweeper

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

Instance Method Summary collapse

Instance Method Details

#after_destroy(page) ⇒ Object



10
11
12
# File 'app/sweepers/appyantra_admin/pages_sweeper.rb', line 10

def after_destroy(page)
  expire_page_for page
end

#after_update(page) ⇒ Object



6
7
8
# File 'app/sweepers/appyantra_admin/pages_sweeper.rb', line 6

def after_update(page)
  expire_page_for page
end