Sha256: 6eaf69e8d1b3554f87cb005ff6187cf7079bcfbf9436953685bbded37ad0b077
Contents?: true
Size: 448 Bytes
Versions: 51
Compression:
Stored size: 448 Bytes
Contents
class ItemSweeper < ActionController::Caching::Sweeper include ExpireEditableFragment observe Item def after_save(record) expire_editable_fragment(record) expire_editable_fragment(record.manifestation) record.patrons.each do |patron| expire_editable_fragment(patron) end record.donors.each do |donor| expire_editable_fragment(donor) end end def after_destroy(record) after_save(record) end end
Version data entries
51 entries across 51 versions & 1 rubygems