Sha256: 2491fb076cc431553b41540782612159db1bb381fb8711d8795d2f361dcd8726
Contents?: true
Size: 367 Bytes
Versions: 5
Compression:
Stored size: 367 Bytes
Contents
module Searchgasm module Condition class NotNil < Base class << self def condition_names_for_column super + ["is_not_nil", "is_not_null", "not_null"] end end def to_conditions(value) is_nil = Nil.new(klass, options) is_nil.value = !value is_nil.to_conditions end end end end
Version data entries
5 entries across 5 versions & 1 rubygems