Sha256: 7a028f67824bcbba2935323f6fa80e658dd4c32da08e8af8cf1107ee67f4c53f
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
module Searchgasm module Condition class NotNil < Base self.value_type = :boolean class << self def condition_names_for_column super + ["is_not_nil", "is_not_null", "not_null"] end end def to_conditions(value) is_nil = Nil.new(klass, options) is_nil.value = !value is_nil.sanitize end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.5.3 | lib/searchgasm/condition/not_nil.rb |