-
Notifications
You must be signed in to change notification settings - Fork 5.5k
How To: Upgrade to Devise 3.1
Jared Beck edited this page Mar 21, 2014
·
2 revisions
https://github.com/plataformatec/devise/blob/master/CHANGELOG.md
- Do not store confirmation, unlock and reset password tokens directly in the database. This means tokens previously stored in the database are no longer valid. You can reenable this temporarily by setting
config.allow_insecure_token_lookup = true
in your configuration file. It is recommended to keep this configuration set to true just temporarily in your production servers only to aid migration - The Devise mailer and its views were changed to explicitly receive a token argument as
@token
. You will need to update your mailers and re-copy the views to your application withrails g devise:views
- Sanitization of parameters should be done by calling
devise_parameter_sanitizer.sanitize(:action)
instead ofdevise_parameter_sanitizer.for(:action)