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

Zeitwerk error in error handling module #42

Closed
cilim opened this issue Oct 6, 2021 · 1 comment
Closed

Zeitwerk error in error handling module #42

cilim opened this issue Oct 6, 2021 · 1 comment
Assignees

Comments

@cilim
Copy link
Member

cilim commented Oct 6, 2021

When you include InfinumJsonApiSetup::JsonApi::ErrorHandling in your base controller and run:

bundle exec rails zeitwerk:check

you get an uninitialized constant error for Jsonapi::QueryBuilder::Mixins::Sort::UnpermittedSortParameters: https://github.com/infinum/infinum-json-api-setup/blob/master/lib/infinum_json_api_setup/json_api/error_handling.rb#L23

The mentioned error isn't inside the Sort mixin anymore, but rather in its own class: https://github.com/infinum/jsonapi-query_builder/blob/master/lib/jsonapi/query_builder/errors/unpermitted_sort_parameters.rb

@vr4b4c
Copy link
Member

vr4b4c commented Oct 6, 2021

Fixed&released 0.0.5

@vr4b4c vr4b4c closed this as completed Oct 6, 2021
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

No branches or pull requests

5 participants