Class: PostSweeper

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

Instance Method Summary collapse

Instance Method Details

#after_create(item) ⇒ Object



4
5
6
# File 'app/sweepers/post_sweeper.rb', line 4

def after_create(item)
	expire(item)
end

#after_destroy(item) ⇒ Object



12
13
14
# File 'app/sweepers/post_sweeper.rb', line 12

def after_destroy(item)
	expire(item)
end

#after_update(item) ⇒ Object



8
9
10
# File 'app/sweepers/post_sweeper.rb', line 8

def after_update(item)
	expire(item)
end