On Fri, Feb 26, 2010 at 10:12, Carl Youngblood
<[email protected]> wrote:
> Dan, thanks for your answer but I wasn't asking how to enforce
> uniqueness. I was asking how best to silently ignore duplicate
> inserts.

Doesn't this work like you want:

o = SomeObject.new(:attribute => 'value')
o.save

Resource#save returns true or false here, but you're of course welcome
to ignore that return value.

-- 
Regards,

Dirkjan Bussink

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to