Sha256: 96987876ca16e650bc97b75c7a1cec3b8353e53ba445d4083a9a1831d608fc4f
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
class InsightsHit < ApplicationRecord include ::Authorizable belongs_to :host # since the facet is one-to-one association with a host, we can connect # through host_id column on both this model and facet. belongs_to :insights_facet, foreign_key: 'host_id', primary_key: 'host_id', counter_cache: :hits_count scoped_search on: :title, complete_value: true scoped_search on: :total_risk, complete_value: :true scoped_search relation: :host, on: :name, rename: :hostname, complete_value: true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_rh_cloud-3.0.16 | app/models/insights_hit.rb |
foreman_rh_cloud-3.0.15 | app/models/insights_hit.rb |