Closed
Description
I can consistently break good_job
's code reloading in my app, confirmed in Rails 6.1 and 7.0.
I never need good_job
to reload its code while my application is running, so it's not clear to me why zeitwerk
is a runtime dependency. #87 didn't shed any light on this. Perhaps it should be a development dependency?
Steps to reproduce
- Create a new Rails app
- Add
good_job
, mount engine - Start and wait for server
- Make any change to application code
- Try http://localhost:3000/good_job.
gem install rails
rails new good_job_demo --database=postgresql
cd good_job_demo
bundle add good_job
bin/rails generate good_job:install
bin/rails db:create db:migrate
cat <<RUBY > config/routes.rb
Rails.application.routes.draw do
mount GoodJob::Engine => 'good_job'
end
RUBY
bin/rails server
open http://localhost:3000/good_job # Confirm working, optionally
touch config/routes.rb # or app/controllers/application_controller.rb
open http://localhost:3000/good_job # Broken
Metadata
Assignees
Labels
No labels
Activity