Class: RoleFu::Configuration
- Inherits:
-
Object
- Object
- RoleFu::Configuration
- Defined in:
- lib/role_fu/configuration.rb
Instance Attribute Summary collapse
-
#dynamic_shortcuts_pattern ⇒ Object
Returns the value of attribute dynamic_shortcuts_pattern.
-
#dynamic_shortcuts_regex ⇒ Object
readonly
Returns the value of attribute dynamic_shortcuts_regex.
-
#global_roles_override ⇒ Object
Returns the value of attribute global_roles_override.
-
#role_assignment_class_name ⇒ Object
Returns the value of attribute role_assignment_class_name.
-
#role_class_name ⇒ Object
Returns the value of attribute role_class_name.
-
#user_class_name ⇒ Object
Returns the value of attribute user_class_name.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_pattern ⇒ Object
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_regex ⇒ Object (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_override ⇒ Object
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_name ⇒ Object
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_name ⇒ Object
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_name ⇒ Object
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 |