Sha256: 8111e80ecfe7c044657824a1349ecb344c3f106826323301cf392ac3e648ad56
Contents?: true
Size: 353 Bytes
Versions: 23
Compression:
Stored size: 353 Bytes
Contents
class QuestionSweeper < ActionController::Caching::Sweeper observe Answer include ExpireEditableFragment def after_save(record) case record.to_s.to_sym when :Answer record.items.each do |item| expire_editable_fragment(item.manifestation) end end end def after_destroy(record) after_save(record) end end
Version data entries
23 entries across 23 versions & 1 rubygems