lib/schemacop/railtie.rb in schemacop-3.0.0.rc5 vs lib/schemacop/railtie.rb in schemacop-3.0.0

- old
+ new

@@ -3,8 +3,15 @@ initializer 'schemacop' do # Load global schemas unless Rails.env.development? V3::GlobalContext.eager_load! end + + # Tell Zeitwerk to ignore the files in our load path + if defined?(Rails) && defined?(Zeitwerk) + Schemacop.load_paths.each do |load_path| + Rails.autoloaders.main.ignore(Rails.root.join(load_path)) + end + end end end end