To change error message, you can do only by default overriding. dm-validations add an option to property allow overriding this message. This commit use it if it's define.
Needed to pass tests for plataformatec/devise@73f617d
The compatibility code for this in devise was removed in plataformatec/devise@6dd7cce
…ility Per changes in plataformatec/devise@456989c and d2223ee5
DataMapper::Validations::ValidationErrors has been renamed to (but still provides an alias) DataMapper::Validation::ViolationSet in the process of refactoring. Its #add method now allows the second parameter to be optional and so dm-devise needs to do that too in order to avoid ArgumentErrors.
#_persist will work within a hook, #save! will not. Confirmable#generate_confirmation_token! can be called after_update.