Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous attempt was failing because it was adding preview paths before setting ActionMailer autoloads, causing Solidus previews folder to be autoloaded by Zeitwerk without namespace, as the `lib` folder is not a Zeitwerk root (and we cannot add it as one): Zeitwerk::NameError: expected file solidus/core/lib/spree/mailer_previews/carton_preview.rb to define constant CartonPreview, but didn't Adding the previews path after setting the autoload fixes the issue by having the same scenario we had before Rails 7.1, i.e. the file is not autoloaded by Zeitwerk.
- Loading branch information