Class: LesliHelp::Dashboard

Inherits:
Lesli::Shared::Dashboard
  • Object
show all
Defined in:
app/models/lesli_help/dashboard.rb

Defined Under Namespace

Classes: Component, ComponentsController

Class Method Summary collapse

Class Method Details

.initialize_data(account) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'app/models/lesli_help/dashboard.rb', line 10

def self.initialize_data()
=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