lib/searchlogic/condition/equals.rb in searchlogic-1.6.3 vs lib/searchlogic/condition/equals.rb in searchlogic-1.6.4

- old
+ new

@@ -19,11 +19,15 @@ when Range args = [value.first, value.last] else args << value end - - ["#{column_sql} #{klass.send(:attribute_condition, value)}", *args] + + begin + return [klass.send(:attribute_condition, column_sql, value), *args] + rescue ArgumentError + return ["#{column_sql} #{klass.send(:attribute_condition, value)}", *args] # for older versions of AR + end end end end end \ No newline at end of file