Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 155 Bytes
class ArticleSweeper < ActionController::Caching::Sweeper
observe Article
def after_save(record)
expire_fragment("article_#{record.id}")
end
end