You can clone with
The has_many association provides a :before_add callback (which is useful when needing, for example, to initialize some attributes of the child object based on some attributes of the parent).
However, the has_one association does not provide this callback. Is there any reason for this? I encountered a situation where I needed it. Can it be added?
Do you feel like providing a pull request ?
Note : we're too close to 3.1 to include it there. Therefore, this feature will be in 3.2, not before.
Ok, and what about it? It seems to be interesting and skillfull!
Looks like a duplicate of #586.
Hey guys. I'm closing this one. You can follow the #586 issue.
Thanks for reporting.