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
- .current_user_method ⇒ Object
- .current_user_method=(value) ⇒ Object
- .permission_type ⇒ Object
- .permission_type=(value) ⇒ Object
- .permissions_method ⇒ Object
- .permissions_method=(value) ⇒ Object
Class Method Details
.current_user_method ⇒ Object
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_type ⇒ Object
7 8 9 |
# File 'lib/configs.rb', line 7 def self. @@permission_type end |
.permission_type=(value) ⇒ Object
11 12 13 |
# File 'lib/configs.rb', line 11 def self.(value) @@permission_type = value end |
.permissions_method ⇒ Object
23 24 25 |
# File 'lib/configs.rb', line 23 def self. @@permissions_method end |
.permissions_method=(value) ⇒ Object
27 28 29 |
# File 'lib/configs.rb', line 27 def self.(value) @@permissions_method = value end |