Sha256: 197e27cb156f36ddea831a826c11d967aa22a5914a51ea3a57208bf143d8c578
Contents?: true
Size: 287 Bytes
Versions: 37
Compression:
Stored size: 287 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
37 entries across 37 versions & 1 rubygems