I’d like to use autosave => true for an association for its added
benefits:
the parent doesn’t save unless the children saves. However, it seems to
skip validations when saving the children. And this seems to be the
case
since the beginning of time…
On Monday, 9 July 2012 20:37:32 UTC-4, bubbler wrote:
I’d like to use autosave => true for an association for its added
benefits: the parent doesn’t save unless the children saves. However, it
seems to skip validations when saving the children. And this seems to be
the case since the beginning of time…
Anyone know why?
Sometimes it’s useful - if you want the save to fail if any child has
errors, use validates_associated: