Closed mamhoff closed 1 year ago
Thank you for reporting this issue. I made a change to the autoload path of solidus_support last week. Probably this is the cause of the issue. Let me try to reproduce it locally.
@DanielePalombo can you also try to add a regression test for both situations?
I just got the same issue, moving from config.autoload_paths += controllers_path.glob('*')
to config.autoload_paths += [controllers_path]
seems to work and be consistent with https://edgeguides.rubyonrails.org/classic_to_zeitwerk_howto.html#globs-in-config-autoload-paths
I'll prepare a PR to fix this 🙋♂️
This seems to work in the situation described above (tested locally using bundle open
).
(originally reported here, but moving it here, as it affects not only
solidus_auth_devise
, but alsosolidus_braintree
.I'm experiencing the following error in a brand new Solidus Sandbox: Currently (Solidus
main
as of https://github.com/solidusio/solidus/commit/78d20c41b61c8fd3e708c3871030f4e6a5948628,solidus_auth_devise
version 2.5.8) the sandbox can't find the backend sessions controller. This is the error when you try:results in
Solidus Version:
Solidus
main
as of https://github.com/solidusio/solidus/commit/78d20c41b61c8fd3e708c3871030f4e6a5948628To Reproduce
The simplest check for this is just running the rails console and typing the name of the controller we need. If all is good, the REPL should return the constant, if something's off, we get an undefined constant error:
This behavior occurs not just with
solidus_auth_devise
, but with any gem that has the backend controllers inlib
. One example issolidus_braintree
, with itsSolidusBraintree::ConfigurationsController
:Current behavior
Expected behavior
Desktop (please complete the following information):
Additional context
This stopped working with the following commit: https://github.com/solidusio/solidus_support/commit/17e871839e754bd5a247b99b21ca913f50700db9