lib/searchlogic/condition/blank.rb in searchlogic-1.6.0 vs lib/searchlogic/condition/blank.rb in searchlogic-1.6.1

- old
+ new

@@ -9,12 +9,12 @@ end end def to_conditions(value) if value == true - "#{column_sql} IS NULL or #{column_sql} = '' or #{column_sql} = false" + "(#{column_sql} IS NULL or #{column_sql} = '' or #{column_sql} = false)" elsif value == false - "#{column_sql} IS NOT NULL and #{column_sql} != '' and #{column_sql} != false" + "(#{column_sql} IS NOT NULL and #{column_sql} != '' and #{column_sql} != false)" end end end end end \ No newline at end of file