Class: Currentable::Cleaner
- Inherits:
-
Object
- Object
- Currentable::Cleaner
- Defined in:
- lib/currentable/cleaner.rb
Overview
Note:
Will only clean for objects stored on the calling thread.
Cleans up all registered current objects.
Class Method Summary collapse
-
.clean_all ⇒ Object
Sets all registered Instance classes current value to nil.
Class Method Details
.clean_all ⇒ Object
Note:
Will only clean for objects stored on the calling thread.
Sets all registered Instance classes current value to nil
15 16 17 18 19 |
# File 'lib/currentable/cleaner.rb', line 15 def clean_all Currentable::Registry.currents.each do |klass| klass.current = nil end end |