Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/sift/where_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down