Great - completely agree the association should be checked.  Looks
like that's broken in the existing API when you pass a full object
though.  You can actually null out an arbitrary object:

http://pastie.org/659500

The change you made will definitely catch it in the case where I pass
an ID, but we should ensure the common case too I think.  Something
like this:

http://pastie.org/659524.txt

Sticking with the Sequel strictness goal (which I love) I made it an
exception.

I'm sure there's a way to do it w/o a DB call, but I'm still learning
the internals.

Thanks,
Nate

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to