Sha256: 752775ca0b33397c7d0b253bdacc67bb2885d2b4833fe8b8f21b2a5f399d4a1d
Contents?: true
Size: 507 Bytes
Versions: 5
Compression:
Stored size: 507 Bytes
Contents
module Searchgasm module Condition class NotEndWith < Base class << self def condition_names_for_column super + ["not_ew", "not_end", "end_is_not", "end_not"] end end def to_conditions(value) ends_with = EndsWith.new ends_with.value = value conditions = ends_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