
[Patch] Allow belongs_to associations to accept nil
Reported by Paul Barry | February 18th, 2008 @ 05:31 PM
If you have an object with a belongs_to association, when you try to set it to nil, you get an error. This patch fixes that.
Comments and changes to this ticket
-
Adam French February 23rd, 2008 @ 10:57 AM
- State changed from new to open
object.association.clear
...would have had the same effect, though supporting nil assignment is a good idea for AR compatibility.
-
Dan Kubb (dkubb) April 15th, 2008 @ 03:32 AM
- Milestone cleared.
-
Sam Smoot April 27th, 2008 @ 10:21 PM
- Milestone cleared.
This is not an 0.9.0 issue is it? Paul? Are you maintaining these for 0.3.x? If so feel free to get in touch on IRC and I'll just give you SVN commit-bits and we can push out a new release to ease the pain.
-
Sam Smoot May 8th, 2008 @ 05:19 PM
- Assigned user set to Adam French
Adam, please apply to DM 0.3.0 and mark resolved.
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »