Sha256: f2242a6da205fbae614c9551f311e00dfba738d4b80bea42545050ed8421c466

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

module Searchgasm
  module Condition
    class NotBlank < Base
      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.to_conditions
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
searchgasm-1.4.0 lib/searchgasm/condition/not_blank.rb
searchgasm-1.4.1 lib/searchgasm/condition/not_blank.rb
searchgasm-1.5.0 lib/searchgasm/condition/not_blank.rb
searchgasm-1.5.1 lib/searchgasm/condition/not_blank.rb
searchgasm-1.5.2 lib/searchgasm/condition/not_blank.rb