Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed deprecated warning #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fixed deprecated warning #20

wants to merge 2 commits into from

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