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

Switch Rails autoloader to Zeitwerk #896

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

botandrose
Copy link

This PR configures Rails to use the newer Zeitwerk autoloader, rather than the classic one. This necessitated two changes:

  1. Renderers::CSV and Renderers::CSVOptions don't comply with the zeitwork capitalization conventions (expects Csv), so they are ignored and manually required.
  2. Files in app can no longer be directly loaded in an initializer, instead they need to be wrapped in Rails.application.reloader.to_prepare.

@botandrose botandrose force-pushed the zeitwerk branch 2 times, most recently from f47fd5f to edd6eeb Compare April 8, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants