[LRUG] Binding the creation of 2+ objects together
Anthony Green
email at acgreen.co.uk
Thu Jul 31 09:04:13 PDT 2008
Has anyone encountered a situation in which the business rules state that a
object can't be saved unless its twin is saved too ?
I'm seeing this is pattern repeated where an object with a has_one
relationship to a twin is created but you need to check its twin has created
as well and that both will save. You can't create one entry in a table
without a corresponding entry in a different table.
Does anyone know of an extension to the association declaration that
enforces these kind of rules. A source of creation version of :dependent =>
:destroy
Tony
More information about the Chat
mailing list