On Monday, March 9, 2015 at 3:15:33 AM UTC-7, Neil Middleton wrote:
>
> Indeed - only by manually overriding the primary key methods do I get 
> something working:
>
> ```
>   def self.primary_key
>     :id
>   end
>
>   def self.primary_key_hash(value)
>     {:id => value}
>   end
> ```
>
> Ideally this should be assumed from set_primary_key?  Is this a bug?
>

Possibly, but there are cases where set_primary_key won't take effect, like 
calling set_dataset afterward.  Any chance you could post a self-contained 
example showing the problem?

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 http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to