Class: LatoSpaces::Config
- Inherits:
-
Object
- Object
- LatoSpaces::Config
- Defined in:
- lib/lato_spaces/config.rb
Overview
Config This class contains the default configuration of the engine.
Instance Attribute Summary collapse
-
#group_icon ⇒ Object
Icon of the group (bootstrap icon).
-
#group_params ⇒ Object
Params of the group.
-
#permit_group_creation ⇒ Object
Permit creation of groups for users.
-
#permit_group_management ⇒ Object
Permit management of groups for users.
-
#permit_group_preferred ⇒ Object
Permit users to choose a preferred group.
-
#setgroup_redirect_path ⇒ Object
Path of the redirect after set group.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
25 26 27 28 29 30 31 32 |
# File 'lib/lato_spaces/config.rb', line 25 def initialize @setgroup_redirect_path = nil @group_icon = 'bi bi-people-fill' @group_params = %i[name] @permit_group_creation = false @permit_group_management = false @permit_group_preferred = false end |
Instance Attribute Details
#group_icon ⇒ Object
Icon of the group (bootstrap icon).
11 12 13 |
# File 'lib/lato_spaces/config.rb', line 11 def group_icon @group_icon end |
#group_params ⇒ Object
Params of the group.
14 15 16 |
# File 'lib/lato_spaces/config.rb', line 14 def group_params @group_params end |
#permit_group_creation ⇒ Object
Permit creation of groups for users.
17 18 19 |
# File 'lib/lato_spaces/config.rb', line 17 def permit_group_creation @permit_group_creation end |
#permit_group_management ⇒ Object
Permit management of groups for users.
20 21 22 |
# File 'lib/lato_spaces/config.rb', line 20 def permit_group_management @permit_group_management end |
#permit_group_preferred ⇒ Object
Permit users to choose a preferred group.
23 24 25 |
# File 'lib/lato_spaces/config.rb', line 23 def permit_group_preferred @permit_group_preferred end |
#setgroup_redirect_path ⇒ Object
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 |