Closed stejskalleos closed 4 weeks ago
@ofedoren
Thanks, @stejskalleos, that could do it. We could also try to do it future-proof: since we already remove that constant from Zeitwerk loader, we can explicitly require it in the same initializer, so we don't need to require it in each file that potentially uses that constant. In https://github.com/theforeman/foreman_rh_cloud/blob/develop/config/initializers/zeitwerk.rb:
require 'foreman_rh_cloud/version'
Rails.autoloaders.main.ignore(
ForemanRhCloud::Engine.root.join('lib/foreman_rh_cloud/version.rb')
)
I've also been getting some problems in foreman_theme_satellite with Rails.autoloaders.main.ignore
- apparently main
doesn't exist sometimes?
I've also been getting some problems in foreman_theme_satellite with
Rails.autoloaders.main.ignore
- apparentlymain
doesn't exist sometimes?
AFAIU, .main
comes with Zeitwerk. Before that I think it was .autoloaders.each
for Rails' ones?
Workflows: