Class: PageSweeper

Inherits:
ActionController::Caching::Sweeper
  • Object
show all
Defined in:
app/models/page_sweeper.rb

Instance Method Summary collapse

Instance Method Details

#after_create(page) ⇒ Object



3
4
5
# File 'app/models/page_sweeper.rb', line 3

def after_create(page)
  expire_cache_for(page)
end

#after_destroy(page) ⇒ Object



11
12
13
# File 'app/models/page_sweeper.rb', line 11

def after_destroy(page)
  expire_cache_for(page)
end

#after_update(page) ⇒ Object



7
8
9
# File 'app/models/page_sweeper.rb', line 7

def after_update(page)
  expire_cache_for(page)
end