We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
where
where method should not do any mutation. New object have to be returned back.
so far hotfixed with:
JsonApiClient::Query::Builder.prepend( Module.new do def where(conditions = {}) dup.tap do |clone| clone.instance_variable_set(:@path_params, @path_params.merge(conditions.slice(*klass.prefix_params))) clone.instance_variable_set(:@filters, @filters.merge(conditions.except(*klass.prefix_params))) end end end )
The text was updated successfully, but these errors were encountered:
This is a problem for a few things. Do you have a PR for this? If not, I'll start one and would love some feedback on it.
same core issue: #292
Sorry, something went wrong.
I've used hotfix mentioned above. Feel free to create a PR
#293 will solve it
Merge pull request #293 from gaorlov/idempotent_scoping
fc06c87
#292 #254 making scopes unmodifiable
No branches or pull requests
where
method should not do any mutation. New object have to be returned back.so far hotfixed with:
The text was updated successfully, but these errors were encountered: