lib/searchgasm/condition/not_like.rb in searchgasm-1.3.0 vs lib/searchgasm/condition/not_like.rb in searchgasm-1.3.1

- old
+ new

@@ -8,10 +8,13 @@ end def to_conditions(value) like = Like.new like.value = value - like.to_conditions.gsub(" LIKE ", " NOT LIKE ") + conditions = like.to_conditions + return conditions if conditions.blank? + conditions.first.gsub!(" LIKE ", " NOT LIKE ") + conditions end end end end \ No newline at end of file