Class: RoleFu::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
# File 'lib/role_fu/configuration.rb', line 8

def initialize
  @user_class_name = "User"
  @role_class_name = "Role"
  @role_assignment_class_name = "RoleAssignment"
  @global_roles_override = false
  self.dynamic_shortcuts_pattern = "is_%{role}?"
end

Instance Attribute Details

#dynamic_shortcuts_patternObject

Returns the value of attribute dynamic_shortcuts_pattern.



6
7
8
# File 'lib/role_fu/configuration.rb', line 6

def dynamic_shortcuts_pattern
  @dynamic_shortcuts_pattern
end

#dynamic_shortcuts_regexObject (readonly)

Returns the value of attribute dynamic_shortcuts_regex.



6
7
8
# File 'lib/role_fu/configuration.rb', line 6

def dynamic_shortcuts_regex
  @dynamic_shortcuts_regex
end

#global_roles_overrideObject

Returns the value of attribute global_roles_override.



5
6
7
# File 'lib/role_fu/configuration.rb', line 5

def global_roles_override
  @global_roles_override
end

#role_assignment_class_nameObject

Returns the value of attribute role_assignment_class_name.



5
6
7
# File 'lib/role_fu/configuration.rb', line 5

def role_assignment_class_name
  @role_assignment_class_name
end

#role_class_nameObject

Returns the value of attribute role_class_name.



5
6
7
# File 'lib/role_fu/configuration.rb', line 5

def role_class_name
  @role_class_name
end

#user_class_nameObject

Returns the value of attribute user_class_name.



5
6
7
# File 'lib/role_fu/configuration.rb', line 5

def user_class_name
  @user_class_name
end