Sha256: 71906ff88fadad381c2105432f456dc2c97aeff7d53e6c8510b91cc986b836cb
Contents?: true
Size: 306 Bytes
Versions: 22
Compression:
Stored size: 306 Bytes
Contents
module Dorsale module BillingMachine module SmallData class FilterStrategyByCustomer < ::Dorsale::SmallData::FilterStrategy def apply(query, value) type, id = value.split("-") query.where(customer_type: type, customer_id: id) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems