lib/searchgasm/condition/not_end_with.rb in searchgasm-1.5.2 vs lib/searchgasm/condition/not_end_with.rb in searchgasm-1.5.3
- old
+ new
@@ -8,10 +8,10 @@
end
def to_conditions(value)
ends_with = EndsWith.new(klass, options)
ends_with.value = value
- conditions = ends_with.to_conditions
+ conditions = ends_with.sanitize
return conditions if conditions.blank?
conditions.first.gsub!(" LIKE ", " NOT LIKE ")
conditions
end
end
\ No newline at end of file