Sha256: ac0594f7f30465624fac584e757a7fe5cf6fcab9cac69b3c845cdf119bbedf3d
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 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} = ''" elsif value == false "#{column_sql} is NOT NULL and #{column_sql} != ''" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.3.2 | lib/searchgasm/condition/blank.rb |