Sha256: 5a6c3ac2e10e3713805bfe2db037a3f3c8994942fae73d66ec07d1f3bda0ea1f
Contents?: true
Size: 514 Bytes
Versions: 15
Compression:
Stored size: 514 Bytes
Contents
module Searchlogic 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(klass, options) like.value = value conditions = like.sanitize return conditions if conditions.blank? conditions.first.gsub!(" #{like_condition_name} ", " NOT #{like_condition_name} ") conditions end end end end
Version data entries
15 entries across 15 versions & 2 rubygems