This project is archived and is in readonly mode.
Invalid has_one association causes parent object save to fail
-
Luke Redpath
One further note, this appears to be related to this ticket
It appears some kind of fix has been checked in (a :validate option to disable this behaviour) but I still consider this to be a bug unless this behaviour is either disabled by default or properly documented.
-
Drew Blas
+1
I'd like to see this removed entirely. We already had a perfectly good method for the validation. This undocumented and entirely unexpected behavior is much more bug than feature.
-
James Cox
+1
-
Pratik
- State changed from new to resolved
http://github.com/rails/rails/co... disabled it by default.
-
Luke Redpath
- Assigned user set to Pratik
There seems to be some inconsistency in the documentation in that commit; sometimes it says false by default, sometimes it is true by default. Is this just a documentation error?
-
Pratik
It's false by default for has_one and belongs_to. Made another commits to fix docs/bheavior.
Thanks
-
Jeremy McNevin
Link to that commit: http://github.com/rails/rails/co...