Class: VoteSweeper

Inherits:
ActionController::Caching::Sweeper
  • Object
show all
Defined in:
app/controllers/vote_sweeper.rb

Instance Method Summary collapse

Instance Method Details

#after_create(vote) ⇒ Object


4
5
6
# File 'app/controllers/vote_sweeper.rb', line 4

def after_create(vote)
  expire_cache_for(vote)
end