Sha256: a3ab3c562eef0fa664733f3bef5a5cd3c3bdaea359414b21081c23825d026f3e
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
module Searchgasm 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 begin_with.value = value conditions = being_with.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