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.initialize_account(account)
self.create!(
account: 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
|