Class: AccessAllow::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_methodObject

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_nameObject

Returns the value of attribute permissions_association_name.



27
28
29
# File 'lib/access_allow.rb', line 27

def permissions_association_name
  @permissions_association_name
end

#role_method_nameObject

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_permissionsObject

Returns the value of attribute roles_and_permissions.



27
28
29
# File 'lib/access_allow.rb', line 27

def roles_and_permissions
  @roles_and_permissions
end