Sha256: 34d33038a3907f6e07a245a14015ee5fa3790413e14082ccd3822e87c4435b02

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

module Searchgasm
  module Condition
    class NotBlank < Base
      self.value_type = :boolean
      
      class << self
        def condition_names_for_column
          super + ["is_not_blank"]
        end
      end
      
      def to_conditions(value)
        blank = Blank.new(klass, options)
        blank.value = !value
        blank.sanitize
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
searchgasm-1.5.3 lib/searchgasm/condition/not_blank.rb