lib/searchgasm/condition/not_like.rb in searchgasm-1.3.5 vs lib/searchgasm/condition/not_like.rb in searchgasm-1.4.0
- old
+ new
@@ -6,10 +6,10 @@
super + ["not_contain", "not_have"]
end
end
def to_conditions(value)
- like = Like.new
+ like = Like.new(klass, options)
like.value = value
conditions = like.to_conditions
return conditions if conditions.blank?
conditions.first.gsub!(" LIKE ", " NOT LIKE ")
conditions
\ No newline at end of file