lib/searchgasm/condition/not_nil.rb in searchgasm-1.5.2 vs lib/searchgasm/condition/not_nil.rb in searchgasm-1.5.3
- old
+ new
@@ -1,17 +1,19 @@
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.to_conditions
+ is_nil.sanitize
end
end
end
end
\ No newline at end of file