labria
Ruby dev · Not a member
labria's latest activity
Sunday, April 19 2009
Monday, November 10 2008
1305
has_one dependent nullify deletes associated object on change
was updated
in Ruby on Rails
-
labria commented at 7:10 PMFixed the case when destroy was called instead of delete. Tests included.
-
- Tag changed from has_one, nullify to has_one, nullify, patch
Here's the patch fixing the problem. What still remains is the fact that :destroy or :delete do not actually matter, each time #destroy is called.
-
labria commented at 5:41 PMI have found the source of it. The HasOneAssociation has a "replace" method. Inside it, it checks the dependent? method of the association, and if it finds it t...
-