Sha256: c982b67b5562158fe60b184c2bda18e244882947a79fa54f45e8c3aae0592fcf
Contents?: true
Size: 350 Bytes
Versions: 45
Compression:
Stored size: 350 Bytes
Contents
class Dorsale::CustomerVault::SmallData::FilterStrategyByActivityType < ::Agilibox::SmallData::FilterStrategy def apply(query, value) corporations_id = query.where(activity_type_id: value).pluck(:id) individuals_id = query.where(corporation_id: corporations_id).pluck(:id) query.where(id: (corporations_id + individuals_id)) end end
Version data entries
45 entries across 45 versions & 1 rubygems