lib/searchgasm/condition/not_blank.rb in searchgasm-1.5.2 vs lib/searchgasm/condition/not_blank.rb in searchgasm-1.5.3
- old
+ new
@@ -1,17 +1,19 @@
module Searchgasm
module Condition
class NotBlank < Base
+ self.value_type = :boolean
+
class << self
def condition_names_for_column
super + ["is_not_blank"]
end
end
def to_conditions(value)
blank = Blank.new(klass, options)
blank.value = !value
- blank.to_conditions
+ blank.sanitize
end
end
end
end
\ No newline at end of file