property uniqueness with scope

4 views
Skip to first unread message

Nicholas Wieland

unread,
Feb 19, 2014, 11:10:07 AM2/19/14
to datam...@googlegroups.com
Hi, I'm having a very strange issue I'm not quite able to understand:


The problem I have is that the spec fails, the subquery I create is valid (and it shouldn't, text is not unique) and I don't understand why.
Using unique: true doesn't help.

What am I doing wrong?

Antonio Antillon

unread,
Feb 22, 2014, 11:31:02 AM2/22/14
to datam...@googlegroups.com
I know this is something you probably already done, but are you completely sure you're loading dm-validations in your application.rb file (or wherever you're loading datamapper)?

make sure you have this line:

require "dm-validations"


--
You received this message because you are subscribed to the Google Groups "DataMapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datamapper+...@googlegroups.com.
To post to this group, send email to datam...@googlegroups.com.
Visit this group at http://groups.google.com/group/datamapper.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages