Class: Controlist::Managers::ThreadBasedManager

Inherits:
BaseManager
  • Object
show all
Defined in:
lib/controlist/managers/thread_based_manager.rb

Class Method Summary collapse

Class Method Details

.disable_skipObject



23
24
25
# File 'lib/controlist/managers/thread_based_manager.rb', line 23

def disable_skip
  Thread.current[:skip_controlist] = nil
end

.enable_skipObject



19
20
21
# File 'lib/controlist/managers/thread_based_manager.rb', line 19

def enable_skip
  Thread.current[:skip_controlist] = true
end

.get_permission_packageObject



7
8
9
# File 'lib/controlist/managers/thread_based_manager.rb', line 7

def get_permission_package
  Thread.current[:permission_package]
end

.set_permission_package(package) ⇒ Object



11
12
13
# File 'lib/controlist/managers/thread_based_manager.rb', line 11

def set_permission_package(package)
  Thread.current[:permission_package] = package
end

.skip?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/controlist/managers/thread_based_manager.rb', line 15

def skip?
  Thread.current[:skip_controlist] == true
end