Feature request: `persist_with` callback
It would be helpful to have an analog of the initialize_with
callback for persisting an instance.
Some use cases:
- Using
save
rather thansave!
- Using
save!(validate: false)
- Persisting a model with a custom persistence method (e.g. one that wraps
save!
with additional logic) - Persisting a model while disabling callbacks following an approach such as this