Sha256: 82b55bcefa7039e25dcf8256a2ac6d4eb02612644d550618eb4f133de97d876c
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 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 like.to_conditions.gsub(" LIKE ", " NOT LIKE ") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.3.0 | lib/searchgasm/condition/not_like.rb |