lib/searchlogic/condition/equals.rb in searchlogic-1.6.0 vs lib/searchlogic/condition/equals.rb in searchlogic-1.6.1
- old
+ new
@@ -9,9 +9,11 @@
super + ["", "is"]
end
end
def to_conditions(value)
+ return value if value.is_a?(Array) && value.empty?
+
# Let ActiveRecord handle this
args = []
case value
when Range
args = [value.first, value.last]
\ No newline at end of file