Add :if_update option in order to allow counter to be conditionally incremented/decremented when an update has been made to an embedded/referenced object.
Add :if_update option in order to allow counter to be conditionally incremented/decremented when an update has been made to an embedded/referenced object.

jah2488/mongoid-magic-counter-cache