Sha256: e9b8537c8dec1f88a86dd9af29772ece02ec85fde2db53c5c79fbd8b6f16cc84
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 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.sanitize return conditions if conditions.blank? conditions.first.gsub!(" #{like_condition_name} ", " NOT #{like_condition_name} ") conditions end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.5.3 | lib/searchgasm/condition/not_like.rb |