Class: ActionSentinelGroup::Configuration
- Inherits:
-
Object
- Object
- ActionSentinelGroup::Configuration
- Defined in:
- lib/action_sentinel_group/configuration.rb
Overview
The Configuration class holds the configuration options for ActionSentinelGroup
Instance Attribute Summary collapse
-
#group_model_name ⇒ String
The name of the group model (default: “Group”).
-
#user_group_model_name ⇒ String
The name of the user group model (default: “UserGroup”).
-
#user_model_name ⇒ String
The name of the user model (default: “User”).
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Initializes a new Configuration instance with default values.
Constructor Details
#initialize ⇒ Configuration
Initializes a new Configuration instance with default values.
22 23 24 25 26 |
# File 'lib/action_sentinel_group/configuration.rb', line 22 def initialize @user_model_name = "User" @group_model_name = "Group" @user_group_model_name = "UserGroup" end |
Instance Attribute Details
#group_model_name ⇒ String
The name of the group model (default: “Group”)
14 15 16 |
# File 'lib/action_sentinel_group/configuration.rb', line 14 def group_model_name @group_model_name end |
#user_group_model_name ⇒ String
The name of the user group model (default: “UserGroup”)
19 20 21 |
# File 'lib/action_sentinel_group/configuration.rb', line 19 def user_group_model_name @user_group_model_name end |
#user_model_name ⇒ String
The name of the user model (default: “User”)
9 10 11 |
# File 'lib/action_sentinel_group/configuration.rb', line 9 def user_model_name @user_model_name end |