lib/searchgasm/condition/not_have_keywords.rb in searchgasm-1.5.2 vs lib/searchgasm/condition/not_have_keywords.rb in searchgasm-1.5.3
- old
+ new
@@ -8,12 +8,12 @@
end
def to_conditions(value)
keywords = Keywords.new(klass, options)
keywords.value = value
- conditions = keywords.to_conditions
+ conditions = keywords.sanitize
return conditions if conditions.blank?
- conditions.first.gsub!(" LIKE ", " NOT LIKE ")
+ conditions.first.gsub!(" #{like_condition_name} ", " NOT #{like_condition_name} ")
conditions
end
end
end
end
\ No newline at end of file