Sha256: e515a3f0b59af4daa7c1e1183c7f3eb7ac60aeb0916aeae980a500ece7fa2434
Contents?: true
Size: 567 Bytes
Versions: 7
Compression:
Stored size: 567 Bytes
Contents
module Searchlogic module Condition class NotBeginWith < Base class << self def condition_names_for_column super + ["not_bw", "not_sw", "not_start_with", "not_start", "beginning_is_not", "beginning_not"] end end def to_conditions(value) begin_with = BeginWith.new(klass, options) begin_with.value = value conditions = being_with.sanitize return conditions if conditions.blank? conditions.first.gsub!(" LIKE ", " NOT LIKE ") conditions end end end end
Version data entries
7 entries across 7 versions & 1 rubygems