On Thursday, November 15, 2018 at 1:45:45 PM UTC-8, craig buchanan wrote:
>
>  I'm not sure that I follow.  
>
> This doesn't work, obviously:
>
> User[1].add_contact(Contact[1], type: 'contact')
>
>
Not by default, but you can use the :adder option to support it (IIRC, 
using something like this):

:adder=>(lambda do |contact, values={}|
  DB[:user_favorites].insert(values.merge(:user_id=>id, 
:contact_id=>contact.id))
end)

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to