Skip to content

Conversation

@wafcio
Copy link

@wafcio wafcio commented Apr 4, 2012

I wrote test, which use factory girl 3.0 and saw deprecated warning: "DataMapper::Validation::ViolationSet#errors is deprecated, use DataMapper::Validation::ViolationSet#violations instead (.../dm-devise-2.0.1/lib/devise/orm/data_mapper/validations/dm-validations.rb:18:in `add')"

I fixed this warning in this commit

@jm81
Copy link
Owner

jm81 commented Apr 4, 2012

I believe the ViolationSet#violations method isn't in any of the released dm-validations gems yet. Could you check? If it is in 1.2.0, I'll merge this in (If you want to do a pull request that would check which method is available, that would be great).

@wafcio
Copy link
Author

wafcio commented Apr 4, 2012

You are right, it is part of dm-validates 1.3 beta. datamapper 1.2 doesn't work with rails 3.2 so I use 1.3 beta with hope for fast release stable version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants