Sha256: 130a9e30a1dfb1d594583e5e70d3b6f7dc4e13008547859b9f284e05f04720b1
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 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['organization_ids'].any? 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.1 | app/models/mno_enterprise/impac/widget.rb |
mno-enterprise-core-3.3.0 | app/models/mno_enterprise/impac/widget.rb |