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

Version Path
dorsale-4.0.0 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.20.0 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.19.1 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.19.0 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.18.0 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.17.0 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.16.0 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.15.0 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.11 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.10 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.9 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.8 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.7 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.6 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.5 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.4 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.3 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.2 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.1 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb
dorsale-3.14.0 app/filters/dorsale/customer_vault/small_data/filter_strategy_by_activity_type.rb