Sha256: 4eecdc11d3694e265932343942e42b674efc0c3d3868a349425e4b2dfa804763
Contents?: true
Size: 514 Bytes
Versions: 8
Compression:
Stored size: 514 Bytes
Contents
module Searchlogic module Condition class Blank < Base self.value_type = :boolean class << self def condition_names_for_column super + ["is_blank"] end end def to_conditions(value) if value == true "#{column_sql} IS NULL or #{column_sql} = '' or #{column_sql} = false" elsif value == false "#{column_sql} IS NOT NULL and #{column_sql} != '' and #{column_sql} != false" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems