Sha256: 7a800482e9ca86ac3d826e07e4062ce18f32f96f792dcec047bc4cd921569a98
Contents?: true
Size: 482 Bytes
Versions: 5
Compression:
Stored size: 482 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(klass, options) 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