Class: SpudPostCommentSweeper

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

Instance Method Summary collapse

Instance Method Details

#after_destroy(record) ⇒ Object



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

def after_destroy(record)
  expire_cache_for(record)
end

#after_save(record) ⇒ Object



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

def after_save(record)
  expire_cache_for(record)
end