Sha256: 125c620e428712c3963074a3c2931426ccb86cfd16eeac80e6efe08e287572fe
Contents?: true
Size: 833 Bytes
Versions: 1
Compression:
Stored size: 833 Bytes
Contents
module LesliHelp class Dashboard < Lesli::Shared::Dashboard self.table_name = "lesli_help_dashboards" belongs_to :account has_many :components, inverse_of: :dashboard, autosave: true, dependent: :destroy accepts_nested_attributes_for :components, allow_destroy: true def self.initialize_data(account) =begin self.create!( account: account, name: "Audit Default Dashboard", default: true, main: false, components_attributes: [{ name: "Total users", component_id: "users", layout: 4, query_configuration: {}, custom_configuration: {} }] ) =end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lesli_help-0.1.0 | app/models/lesli_help/dashboard.rb |