Sha256: 92db97ebd7d98786387a93481a711094306c1bc767218aac4f94aac597219cb0
Contents?: true
Size: 403 Bytes
Versions: 15
Compression:
Stored size: 403 Bytes
Contents
module Searchlogic 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
15 entries across 15 versions & 2 rubygems