This is intermediate callback between
after_persistwhich is called for built but not persisted record.
class ACloner \< Clowne::Clonerafter\_clone do |\_origin, clone, \*\*| # actualize user attributeclone.draft\_count = clone.posts.countend
🔄 Changed resulting API of cloning. For now, Cloner returns individual operation object and provides simple methods to manipulate with it. See more in docs
NOTE: the old API method (e.g.
save) is still working, but deprecated (you'll see a notice).
If you are using old Clowne version, see migration guide
Mapperas a customizable mechanism to restore broken relations while
after_persistexecution. See more in docs