Sha256: 2dbb787fb92b21c346113490b35f22f1de3542cfe4ad22f4a04c532e4283395d
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
module Searchgasm module Condition class Nil < Base self.value_type = :boolean class << self def condition_names_for_column super + ["is_nil", "is_null", "null"] end end def to_conditions(value) if value == true "#{column_sql} IS NULL" elsif value == false "#{column_sql} IS NOT NULL" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.5.3 | lib/searchgasm/condition/nil.rb |