Skip to content

Add loggable model requirement to RailsApiLogger engine #23

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dpaluy
Copy link

@dpaluy dpaluy commented Apr 11, 2025

After upgrading to v0.10 I got the following error:
uninitialized constant RailsApiLogger::Loggable (NameError)

It means that the RailsApiLogger::Loggable module is being referenced before it’s loaded.

Zeitwerk manages the Rails autoloading mechanism, which doesn’t automatically load files from the app/models directory unless they’re explicitly referenced or used within the application.

This patch resolves this issue.

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.

1 participant