-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Description
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
)
Metadata
Metadata
Assignees
Labels
No labels