Sha256: 43143f118161ee450b5c139c83615e25b7811d10edf681e894efc9d0f437fa1b
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 Bytes
Contents
module MnoEnterprise class Impac::Widget < BaseResource # TODO: remove :widget_category when mnohub migrated to new model attributes :name, :width, :widget_category, :settings, :endpoint belongs_to :dashboard, class_name: 'MnoEnterprise::Impac::Dashboard' has_many :kpis, class_name: 'MnoEnterprise::Impac::Kpi' def to_audit_event if settings.present? && settings['organization_ids'].present? organization = MnoEnterprise::Organization.find_by(uid: settings['organization_ids'].first) { name: name, organization_id: organization.id } else { name: name } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mno-enterprise-core-3.3.3 | app/models/mno_enterprise/impac/widget.rb |
mno-enterprise-core-3.3.2 | app/models/mno_enterprise/impac/widget.rb |