class AdequateSerialization::CacheBusting::TouchNotFoundError

Public Class Methods

new(record, associated, inverse) click to toggle source
Calls superclass method AdequateSerialization::Error::new
# File lib/adequate_serialization/rails/cache_busting.rb, line 18
      def initialize(record, associated, inverse)
        super(<<~MSG)
          #{record} serializes all of the associated #{associated} records,
          which means when #{associated} updates it needs to notify #{record} in
          order to bust the cache. This can be accomplished by adding the
          `touch: true` option to #{associated}'s #{inverse} association.
        MSG
      end