Sha256: 0dee96ca14c0738d8e2417e91843a4808a28c42f1a134904c450977161070943

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 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
        being_with.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_begin_with.rb