Skip to content

Conversation

@johnpaulashenfelter
Copy link
Collaborator

@johnpaulashenfelter johnpaulashenfelter commented Sep 10, 2025

Test and make some changes to ensure zeitwerk is supported as part of preparing to upgrade to Rails 7.0+

@johnpaulashenfelter johnpaulashenfelter marked this pull request as ready for review September 12, 2025 16:08
@@ -1,4 +1,5 @@
class Api::V1::ApiController < ApiController::Base
class Api::V1::ApiController < ActionController::API
include ActionController::RequestForgeryProtection
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use headers and session creds so need both

@@ -1,4 +1,5 @@
class Api::V1::ApiController < ApiController::Base
class Api::V1::ApiController < ActionController::API
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rails change

# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
config.autoloader = :zeitwerk
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force zeitwerk

@cflipse cflipse merged commit 1c37499 into main Sep 12, 2025
1 check passed
@cflipse cflipse deleted the jp/zeitwerk branch September 12, 2025 17:22
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.

3 participants