Have you guys noticed that conditional validation with
does not work well when you are creating a new record?
Consider this gist: https://gist.github.com/aflag/4780225
The Lawyer class has validates_associated on address conditioned on
the Lawyer data comes from a known source or not. So, if lawyer.source
equals to some string, then lawyer.address must not be validated.
if I’m trying to create a new record, it is validated regardless of
source is nil or not. Is it expected to behave like that? Is that a bug?