Sha256: 3ac4c7ec0b214658bcf2bbec96b298a669e4a76551f05b6d68c20662a85d14ac

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

module Refinery
  module Contacts
    module Admin
      class ContactSweeper < ActionController::Caching::Sweeper
=begin
# Because of server-side error rendering, caching is commented.
        observe Contact


        def sweep(contact)
          expire_fragment("refinery/contacts/contact/#{contact.id}")
        end


        alias_method :after_create,  :sweep
        alias_method :after_update,  :sweep
        alias_method :after_destroy, :sweep
=end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-contacts-0.1.2 app/sweepers/refinery/contacts/admin/contact_sweeper.rb
refinerycms-contacts-0.1.1 app/sweepers/refinery/contacts/admin/contact_sweeper.rb
refinerycms-contacts-0.1.0 app/sweepers/refinery/contacts/admin/contact_sweeper.rb