Class: Controlist::Managers::ThreadBasedManager
- Inherits:
-
BaseManager
- Object
- BaseManager
- Controlist::Managers::ThreadBasedManager
- Defined in:
- lib/controlist/managers/thread_based_manager.rb
Class Method Summary collapse
- .disable_skip ⇒ Object
- .enable_skip ⇒ Object
- .get_permission_package ⇒ Object
- .set_permission_package(package) ⇒ Object
- .skip? ⇒ Boolean
Class Method Details
.disable_skip ⇒ Object
23 24 25 |
# File 'lib/controlist/managers/thread_based_manager.rb', line 23 def disable_skip Thread.current[:skip_controlist] = nil end |
.enable_skip ⇒ Object
19 20 21 |
# File 'lib/controlist/managers/thread_based_manager.rb', line 19 def enable_skip Thread.current[:skip_controlist] = true end |
.get_permission_package ⇒ Object
7 8 9 |
# File 'lib/controlist/managers/thread_based_manager.rb', line 7 def Thread.current[:permission_package] end |
.set_permission_package(package) ⇒ Object
11 12 13 |
# File 'lib/controlist/managers/thread_based_manager.rb', line 11 def (package) Thread.current[:permission_package] = package end |
.skip? ⇒ Boolean
15 16 17 |
# File 'lib/controlist/managers/thread_based_manager.rb', line 15 def skip? Thread.current[:skip_controlist] == true end |