This [Devise issue](https://github.com/plataformatec/devise/issues/1339) has more details