diff --git a/core/lib/solidus_core.rb b/core/lib/solidus_core.rb index bab4b80d02d..91268429010 100644 --- a/core/lib/solidus_core.rb +++ b/core/lib/solidus_core.rb @@ -7,3 +7,14 @@ def table_name name end end + + +module RansackNodeConditionPatch + private + + def casted_array?(predicate) + predicate.is_a?(Arel::Nodes::Casted) && predicate.value.is_a?(Array) + end + + Ransack::Nodes::Condition.prepend(self) +end