Sha256: c16289d84c52195b188464aa5eaf41294a8b66185fe893fc64983e1bb7515aaf

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

module Searchgasm
  module Condition
    class NotHaveKeywords < Base
      class << self
        def condition_names_for_column
          super + ["not_have_keywords", "not_keywords", "not_have_kw", "not_kw", "not_have_kwwords", "not_kwwords"]
        end
      end
      
      def to_conditions(value)
        keywords = Keywords.new
        keywords.value = value
        keywords.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_have_keywords.rb