Skip to content

Commit

Permalink
Configure zeitwerk to ignore generator and manually require
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Oct 15, 2023
1 parent ecfe44d commit 6f78078
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example_app_generator/generate_stuff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f78078

Please sign in to comment.