Sha256: 8889e22a58b83406aba42d6bde50a9d0e650a9a1c5a4ff568fe2610b052232c0
Contents?: true
Size: 466 Bytes
Versions: 5
Compression:
Stored size: 466 Bytes
Contents
module Searchgasm module Condition class NotLike < Base class << self def condition_names_for_column super + ["not_contain", "not_have"] end end def to_conditions(value) like = Like.new like.value = value conditions = like.to_conditions return conditions if conditions.blank? conditions.first.gsub!(" LIKE ", " NOT LIKE ") conditions end end end end
Version data entries
5 entries across 5 versions & 1 rubygems