plataformatec/devise — pull request #1516 by jm81 (2011-12-20 21:56:14+00:00)
Title: Move "include Devise::Models::Authenticatable" inside devise_modules_hook! call

Allow alternate ORMs to run compatibility setup code before Authenticatable is included.

The particular issue for dm-devise is that DataMapper does not have a before_validation method, which is called when Authenticatable is included (as of plataformatec/devise@bd27bf76). dm-devise adds before_validation in it's devise_modules_hook!

I don't see any obvious reason that this would break anything. ActiveRecord and DataMapper tests pass (I haven't tried with mongoid)