File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 19
19
* Add Rails 8 support.
20
20
- Routes are lazy-loaded by default in test and development environments now so Devise loads them before `Devise.mappings` call.
21
21
22
+ * bug fixes
23
+ * Make `Devise` work without `ActionMailer` when `Zeitwerk` autoloader is used.
24
+
22
25
Please check [4-stable](https://github.com/heartcombo/devise/blob/4-stable/CHANGELOG.md)
23
26
for previous changes.
Original file line number Diff line number Diff line change @@ -47,5 +47,11 @@ class Engine < ::Rails::Engine
47
47
)
48
48
end
49
49
end
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
+ end
50
56
end
51
57
end
You can’t perform that action at this time.
0 commit comments