Class: ActionSentinelGroup::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/action_sentinel_group/configuration.rb

Overview

The Configuration class holds the configuration options for ActionSentinelGroup

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_nameString

The name of the group model (default: “Group”)

Returns:

  • (String)

    The name of the group model



14
15
16
# File 'lib/action_sentinel_group/configuration.rb', line 14

def group_model_name
  @group_model_name
end

#user_group_model_nameString

The name of the user group model (default: “UserGroup”)

Returns:

  • (String)

    The name of the user group model



19
20
21
# File 'lib/action_sentinel_group/configuration.rb', line 19

def user_group_model_name
  @user_group_model_name
end

#user_model_nameString

The name of the user model (default: “User”)

Returns:

  • (String)

    The name of the user model



9
10
11
# File 'lib/action_sentinel_group/configuration.rb', line 9

def user_model_name
  @user_model_name
end