plataformatec/devise — Issue #1695: Add deprecation warning on check_fields!
Author: rodrigoflores
Created: 2012-03-03 12:05:23+00:00
State: open

When we release a new devise version with check_fields, some modules that don't implement `self.required_fields` will return a method missing error when we call `Devise::Models.check_fields!(User)`. So we must put a deprecation warning in case of a `required_fields` method missing exception.

Something like this (this message is open to feedback if you find something better):

```
The module #{module_name} doesn't implement the required_fields(klass) method so we're unable to check if needed fields really exists for this module.
```