class AdequateSerialization::CacheBusting::InverseNotFoundError

Public Class Methods

new(record, association) click to toggle source
Calls superclass method AdequateSerialization::Error::new
# File lib/adequate_serialization/rails/cache_busting.rb, line 6
      def initialize(record, association)
        super(<<~MSG)
          In order to be able to bust the associated cache for #{record}'s
          `#{association}` association, that association must have an inverse.
          Currently it doesn't, which means Rails was unable to determine the
          name of the inverse association. You can fix this by adding the
          inverse_of option to the association declaration.
        MSG
      end