diff --git a/lib/ransack/nodes/condition.rb b/lib/ransack/nodes/condition.rb index af69c037..248638d2 100644 --- a/lib/ransack/nodes/condition.rb +++ b/lib/ransack/nodes/condition.rb @@ -339,7 +339,7 @@ def in_predicate?(predicate) end def casted_array?(predicate) - predicate.value.is_a?(Array) && predicate.is_a?(Arel::Nodes::Casted) + predicate.is_a?(Arel::Nodes::Casted) && predicate.value.is_a?(Array) end def format_values_for(predicate)