mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-08 23:28:00 -05:00
When ActionMailer is not defined we have empty app/mailers/devise/mailer.rb file and Zeitwerk doesn't like that and errors with ``` expected file app/mailers/devise/mailer.rb to define constant Devise::Mailer ``` The fix is to tell Zeitwerk to ignore that file if ActionMailer constant if not defined. I tried to write a spec for it but since specs are run in the same process it's hard to have two Rails applications where one of them has ActionMailer define and the seconds one doesn't.
1.3 KiB
1.3 KiB
Unreleased
-
breaking changes
-
Drop support to Ruby < 2.7
-
Drop support to Rails < 6.0
-
Remove
SecretKeyFinderand useapp.secret_key_baseas the default secret key forDevise.secret_keyif a customDevise.secret_keyis not provided.This is potentially a breaking change because Devise previously used the following order to find a secret key:
app.credentials.secret_key_base > app.secrets.secret_key_base > application.config.secret_key_base > application.secret_key_baseNow, it always uses
application.secret_key_base. Make sure you're using the same secret key after the upgrade; otherwise, previously generated tokens forrecoverable,lockable, andconfirmablewill be invalid. https://github.com/heartcombo/devise/pull/5645
-
-
enhancements
- Removed deprecations warning output for
Devise::Models::Authenticatable::BLACKLIST_FOR_SERIALIZATION(@soartec-lab) - Add Rails 8 support.
- Routes are lazy-loaded by default in test and development environments now so Devise loads them before
Devise.mappingscall.
- Routes are lazy-loaded by default in test and development environments now so Devise loads them before
- Removed deprecations warning output for
-
bug fixes
- Make
Devisework withoutActionMailerwhenZeitwerkautoloader is used.
- Make
Please check 4-stable for previous changes.