Closed softr8 closed 4 years ago
@softr8 thanks, good catch!
@kennyadsl could you take a look when you have the chance, since you worked on the original change?
Updated recently and am also running into this issue. Thanks @softr8 for reporting it.
If autoloaders is defined in the Rails object, but the autoloader zeitwerk is not used, it is defined but returns nil when calling
main
.It is not enough to check here if autoloaders are enabled, it actually returns true, because it is registered, but if zeitwerk is disabled,
Rails.autoloaders.main
returns nil causing a no method error