Sha256: 0def589ce9b53918a26ba06fa3fd12ae74fd6ffb9af9853c91828b5ec57bd0cf
Contents?: true
Size: 431 Bytes
Versions: 15
Compression:
Stored size: 431 Bytes
Contents
module Searchlogic 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
15 entries across 15 versions & 2 rubygems