Class: PaperSweeper

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

Instance Method Summary collapse

Methods included from BlogHelper

#resumer, #tag_cloud, #tags

Instance Method Details

#after_create(record) ⇒ Object



9
10
11
# File 'app/models/paper_sweeper.rb', line 9

def after_create(record)
  expire_cache_for(record)
end

#after_destroy(record) ⇒ Object



13
14
15
# File 'app/models/paper_sweeper.rb', line 13

def after_destroy(record)
  expire_cache_for(record)
end

#after_save(record) ⇒ Object



5
6
7
# File 'app/models/paper_sweeper.rb', line 5

def after_save(record)
  expire_cache_for(record)
end