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"


On Wed, Feb 19, 2014 at 8:10 AM, Nicholas Wieland <n...@nofeed.org> wrote:

> Hi, I'm having a very strange issue I'm not quite able to understand:
>
> https://gist.github.com/ngw/9954447e04b0f60b1f86
>
> 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?
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to datamapper@googlegroups.com.
> Visit this group at http://groups.google.com/group/datamapper.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to datamapper@googlegroups.com.
Visit this group at http://groups.google.com/group/datamapper.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to