diff --git a/lib/sift/where_handler.rb b/lib/sift/where_handler.rb index cc6ac09..5b27cfd 100644 --- a/lib/sift/where_handler.rb +++ b/lib/sift/where_handler.rb @@ -15,7 +15,7 @@ def call(collection, value, _params, _scope_params) private def apply_jsonb_conditions(collection, value) - return collection.where("#{@param.internal_name} @> ?", val.to_s) if value.is_a?(Array) + return collection.where("#{@param.internal_name} @> ?", value.to_s) if value.is_a?(Array) value.each do |key, val| collection = if val.is_a?(Array)