Sha256: 04e83a30727ee3608aceba44824ca8042e00db8459c0d2e54443d45051c741fe
Contents?: true
Size: 359 Bytes
Versions: 22
Compression:
Stored size: 359 Bytes
Contents
module Dorsale module BillingMachine module SmallData class FilterStrategyByState < ::Dorsale::SmallData::FilterStrategy def apply(query, value) if value.to_s.match(/not_(.+)/) query.where("state != ?", $~[1]) else query.where(state: value) end end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems