Sha256: 8f7efe45bd12d01fa30796afc05a44408e16cbffd7cab13b2b08e2beb95c3754
Contents?: true
Size: 518 Bytes
Versions: 5
Compression:
Stored size: 518 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
5 entries across 5 versions & 2 rubygems