Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code in extras/ isn't reloading #1246

Open
pushcx opened this issue Feb 2, 2024 · 0 comments
Open

code in extras/ isn't reloading #1246

pushcx opened this issue Feb 2, 2024 · 0 comments

Comments

@pushcx
Copy link
Member

pushcx commented Feb 2, 2024

In config/application.rb we configure the autoload path with a line of code straight out of the guide: https://guides.rubyonrails.org/autoloading_and_reloading_constants.html#config-autoload-paths

    config.autoload_paths << "#{root}/extras"

Despite this, files in extras are not reloaded on change, making dev tedious. This is in development mode (which does not change the default of config.enable_reloading = true).

While this is a good first issue if you are new to the codebase, this is probably not if you are a junior dev. This is maybe a weird bug in Rails or maybe some kind of subtle, accumulated misconfig based on our years of updates from Rails 3.2.2. Or maybe I'm staring through some obvious typo in the word "extras", I don't even know anymore after how many times I've lost time kicking this around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant