Sha256: 6bd902ac87325473740fe53457d0645f7069ae5221376f6565ae8c8df9f7eae3
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
module Searchgasm 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.5.3 | lib/searchgasm/condition/blank.rb |