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(" \#{record} serializes all of the associated \#{associated} records,\n which means when \#{associated} updates it needs to notify \#{record} in\n order to bust the cache. This can be accomplished by adding the\n `touch: true` option to \#{associated}'s \#{inverse} association.\n MSG\nend\n") |