From 6f78078dfd811f2a788b5203d49b1336334d09db Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Sun, 15 Oct 2023 22:28:35 +0100 Subject: [PATCH] Configure zeitwerk to ignore generator and manually require --- example_app_generator/generate_stuff.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example_app_generator/generate_stuff.rb b/example_app_generator/generate_stuff.rb index b1aca9187..3028af45c 100644 --- a/example_app_generator/generate_stuff.rb +++ b/example_app_generator/generate_stuff.rb @@ -36,6 +36,8 @@ def setup_tasks copy_file 'lib/rails/generators/in_memory/model/model_generator.rb' copy_file 'lib/rails/generators/in_memory/model/templates/model.rb.erb' application <<-CONFIG + Rails.autoloaders.main.ignore('rails/generators/in_memory') + require 'rails/generators/in_memory/model/model_generator' config.generators do |g| g.orm :in_memory, :migration => false end