I have the snippet below in one of my AR models:
after_update :cache_bust
The cache_bust method in the model accepts a parameter (
cache_bust
There are four types of callbacks accepted by the callback macros: Method references (symbol), callback objects, inline methods (using a proc), and inline eval methods (using a string).
Try this?
after_update -> { cache_bust(true) }