Class: AccessAllow::Configuration
- Inherits:
-
Object
- Object
- AccessAllow::Configuration
- Defined in:
- lib/access_allow.rb
Instance Attribute Summary collapse
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#permissions_association_name ⇒ Object
Returns the value of attribute permissions_association_name.
-
#role_method_name ⇒ Object
Returns the value of attribute role_method_name.
-
#roles_and_permissions ⇒ Object
Returns the value of attribute roles_and_permissions.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
29 30 31 32 33 34 |
# File 'lib/access_allow.rb', line 29 def initialize @roles_and_permissions = {} @current_user_method = :current_user @permissions_association_name = :permissions @role_method_name = :role end |
Instance Attribute Details
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
27 28 29 |
# File 'lib/access_allow.rb', line 27 def current_user_method @current_user_method end |
#permissions_association_name ⇒ Object
Returns the value of attribute permissions_association_name.
27 28 29 |
# File 'lib/access_allow.rb', line 27 def @permissions_association_name end |
#role_method_name ⇒ Object
Returns the value of attribute role_method_name.
27 28 29 |
# File 'lib/access_allow.rb', line 27 def role_method_name @role_method_name end |
#roles_and_permissions ⇒ Object
Returns the value of attribute roles_and_permissions.
27 28 29 |
# File 'lib/access_allow.rb', line 27 def @roles_and_permissions end |