Class: AverageRoles::Configuration
- Inherits:
-
Object
- Object
- AverageRoles::Configuration
- Defined in:
- lib/average_roles.rb
Instance Attribute Summary collapse
-
#role_model ⇒ Object
Returns the value of attribute role_model.
-
#super_user ⇒ Object
Returns the value of attribute super_user.
-
#user_model ⇒ Object
Returns the value of attribute user_model.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 |
# File 'lib/average_roles.rb', line 18 def initialize @user_model = 'User' @role_model = 'Role' @super_user = nil end |
Instance Attribute Details
#role_model ⇒ Object
Returns the value of attribute role_model.
16 17 18 |
# File 'lib/average_roles.rb', line 16 def role_model @role_model end |
#super_user ⇒ Object
Returns the value of attribute super_user.
16 17 18 |
# File 'lib/average_roles.rb', line 16 def super_user @super_user end |
#user_model ⇒ Object
Returns the value of attribute user_model.
16 17 18 |
# File 'lib/average_roles.rb', line 16 def user_model @user_model end |