We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 90a3fa8 + af112a2 commit 7eccc91Copy full SHA for 7eccc91
CHANGELOG.md
@@ -19,5 +19,8 @@
19
* Add Rails 8 support.
20
- Routes are lazy-loaded by default in test and development environments now so Devise loads them before `Devise.mappings` call.
21
22
+* bug fixes
23
+ * Make `Devise` work without `ActionMailer` when `Zeitwerk` autoloader is used.
24
+
25
Please check [4-stable](https://github.com/heartcombo/devise/blob/4-stable/CHANGELOG.md)
26
for previous changes.
lib/devise/rails.rb
@@ -47,5 +47,11 @@ class Engine < ::Rails::Engine
47
)
48
end
49
50
51
+ initializer "devise.configure_zeitwerk" do
52
+ if Rails.autoloaders.zeitwerk_enabled? && !defined?(ActionMailer)
53
+ Rails.autoloaders.main.ignore("#{root}/app/mailers/devise/mailer.rb")
54
+ end
55
56
57
0 commit comments