Sha256: a8caee0ca70078997593b9e04eb1d69b007afbbfeb9a97b551649ded22864332
Contents?: true
Size: 288 Bytes
Versions: 6
Compression:
Stored size: 288 Bytes
Contents
class InsightsFacet < HostFacets::Base has_many :hits, foreign_key: :host_id, primary_key: :host_id, class_name: 'InsightsHit', dependent: :destroy scope :for_organizations, ->(organization_ids) { joins(:host).where(hosts: { organization_id: organization_ids }) } end
Version data entries
6 entries across 6 versions & 1 rubygems