Sha256: 5c3e2484a564dab3d3a25b85c625080363db4554c227483c739c110618672f3b

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 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
        ends_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_end_with.rb