Exception: AdequateSerialization::CacheBusting::TouchNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- AdequateSerialization::CacheBusting::TouchNotFoundError
- Defined in:
- lib/adequate_serialization/rails/cache_busting.rb
Instance Method Summary collapse
-
#initialize(record, associated, inverse) ⇒ TouchNotFoundError
constructor
A new instance of TouchNotFoundError.
Constructor Details
#initialize(record, associated, inverse) ⇒ TouchNotFoundError
Returns a new instance of TouchNotFoundError.
18 19 20 21 22 23 24 25 |
# 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 |