Sha256: d40fa3c01168df1ce115be9ba381566a1dba54e2031162c3fc1922e8999e4d9e
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
class PictureSweeper < ActionController::Caching::Sweeper include PageCache observe Picture observe Comment def after_create(picture) expire_cache(picture) end def after_update(picture) expire_cache(picture) end def after_destroy(picture) expire_cache(picture) end private def expire_cache(picture) PageCache.sweep_all end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pictrails-0.5.0 | app/sweepers/picture_sweeper.rb |