Module: SimplePermissions::Config

Defined in:
lib/configs.rb

Constant Summary collapse

@@current_user_method =
:current_user
@@permissions_method =
:permissions
@@permission_type =
:role

Class Method Summary collapse

Class Method Details

.current_user_methodObject



15
16
17
# File 'lib/configs.rb', line 15

def self.current_user_method
  @@current_user_method
end

.current_user_method=(value) ⇒ Object



19
20
21
# File 'lib/configs.rb', line 19

def self.current_user_method=(value)
  @@current_user_method = value
end

.permission_typeObject



7
8
9
# File 'lib/configs.rb', line 7

def self.permission_type
  @@permission_type
end

.permission_type=(value) ⇒ Object



11
12
13
# File 'lib/configs.rb', line 11

def self.permission_type=(value)
  @@permission_type = value
end

.permissions_methodObject



23
24
25
# File 'lib/configs.rb', line 23

def self.permissions_method
  @@permissions_method
end

.permissions_method=(value) ⇒ Object



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

def self.permissions_method=(value)
  @@permissions_method = value
end