You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments