Class: LatoSpaces::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/lato_spaces/config.rb

Overview

Config This class contains the default configuration of the engine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



28
29
30
31
32
33
34
35
36
# File 'lib/lato_spaces/config.rb', line 28

def initialize
  @setgroup_redirect_path = nil
  @group_icon = 'bi bi-people-fill'
  @group_params = %i[name]
  @membership_params = %i[email]
  @permit_group_creation = false
  @permit_group_management = false
  @permit_group_preferred = false
end

Instance Attribute Details

#group_iconObject

Icon of the group (bootstrap icon).



11
12
13
# File 'lib/lato_spaces/config.rb', line 11

def group_icon
  @group_icon
end

#group_paramsObject

Params of the group.



14
15
16
# File 'lib/lato_spaces/config.rb', line 14

def group_params
  @group_params
end

#membership_paramsObject

Params of the membership.



17
18
19
# File 'lib/lato_spaces/config.rb', line 17

def membership_params
  @membership_params
end

#permit_group_creationObject

Permit creation of groups for users (not admins).



20
21
22
# File 'lib/lato_spaces/config.rb', line 20

def permit_group_creation
  @permit_group_creation
end

#permit_group_managementObject

Permit management of groups for users (not admins).



23
24
25
# File 'lib/lato_spaces/config.rb', line 23

def permit_group_management
  @permit_group_management
end

#permit_group_preferredObject

Permit users to choose a preferred group.



26
27
28
# File 'lib/lato_spaces/config.rb', line 26

def permit_group_preferred
  @permit_group_preferred
end

#setgroup_redirect_pathObject

Path of the redirect after set group.



8
9
10
# File 'lib/lato_spaces/config.rb', line 8

def setgroup_redirect_path
  @setgroup_redirect_path
end