Class: LesliLetter::Dashboard

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

Class Method Summary collapse

Class Method Details

.initialize_account(account) ⇒ Object



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

def self.()
    self.create!(
        account: ,
        name: "Audit Default Dashboard",
        default: true,
        main: false,
        components_attributes: [{
            name: "Total users",
            component_id: "audit-users",
            layout: 3,
            query_configuration: {},
            custom_configuration: {}
        }, {
            name: "Roles",
            component_id: "audit-roles",
            layout: 3,
            query_configuration: {},
            custom_configuration: {}
        }]
    )
end