This is in a pull request to the full devise gem, we may be able to remove it in the future
github.com/plataformatec/devise/pull/2192