Sha256: 8a45b1ef33427ef661c2c3902088057b605557ff20b3ed52c12cd8d8553a5509

Contents?: true

Size: 244 Bytes

Versions: 12

Compression:

Stored size: 244 Bytes

Contents

class Card
  module Query
    class CardQuery
      # for query attributes requiring custom handling
      module Custom
        def compound val
          add_condition "left_id IS #{'NOT' if val} NULL"
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
card-1.108.1 lib/card/query/card_query/custom.rb
card-1.108.0 lib/card/query/card_query/custom.rb
card-1.107.0 lib/card/query/card_query/custom.rb
card-1.106.0 lib/card/query/card_query/custom.rb
card-1.105.6 lib/card/query/card_query/custom.rb
card-1.105.5 lib/card/query/card_query/custom.rb
card-1.105.4 lib/card/query/card_query/custom.rb
card-1.105.3 lib/card/query/card_query/custom.rb
card-1.105.2.pre1 lib/card/query/card_query/custom.rb
card-1.105.2 lib/card/query/card_query/custom.rb
card-1.105.1 lib/card/query/card_query/custom.rb
card-1.105.0 lib/card/query/card_query/custom.rb