Sha256: c991027edf1c62cbf8b030f450b60b11c78105b759c9f1d628728d739340dd4e

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

module Searchgasm
  module Condition
    class Equals < Base
      self.handle_array_value = true
      self.ignore_meaningless_value = false
      
      class << self
        def condition_names_for_column
          super + ["", "is"]
        end
      end
      
      def to_conditions(value)
        # Let ActiveRecord handle this
        klass.send(:sanitize_sql_hash_for_conditions, {column.name => value})
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
searchgasm-1.3.2 lib/searchgasm/condition/equals.rb
searchgasm-1.3.1 lib/searchgasm/condition/equals.rb
searchgasm-1.3.0 lib/searchgasm/condition/equals.rb