Migrating to Devise v5.0.0
Version v5.0.0 introduces 1 breaking change. This guide details how to update your code.
Released: 1/23/2026
1
Breaking Changes
2
Migration Steps
5
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
Devise::SessionsController#createDevise.remember_me_forDevise.remember_durationDevise::Mailer.confirmation_instructionswarden.sessionBreaking Changes
●Issue #1
The `Devise::SessionsController#create` action no longer accepts `params[:remember_me]` directly. It must now be passed via `warden.session[:remember_me]` before calling `warden.authenticate!`.
Migration Steps
- 1If you relied on `params[:remember_me]` being available in `Devise::SessionsController#create`, update your session handling to set `warden.session[:remember_me]` before authentication.
- 2Replace all usages of `Devise.remember_me_for` with `Devise.remember_duration` in configuration files.
Release Summary
Version 5.0.0 introduces configuration enhancements for session duration and unconfirmed access, alongside fixing critical bugs in session handling and mailer configuration.
Need More Details?
View the full release notes and all changes for Devise v5.0.0.
View Full Changelog