Module: Bootsnap::LoadPathCache::CoreExt::ActiveSupport
- Defined in:
- lib/bootsnap/load_path_cache/core_ext/active_support.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.allow_bootsnap_retry(allowed) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/bootsnap/load_path_cache/core_ext/active_support.rb', line 13 def self.allow_bootsnap_retry(allowed) prev = Thread.current[:without_bootsnap_retry] || false Thread.current[:without_bootsnap_retry] = !allowed yield ensure Thread.current[:without_bootsnap_retry] = prev end |
.without_bootsnap_cache ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/bootsnap/load_path_cache/core_ext/active_support.rb', line 5 def self.without_bootsnap_cache prev = Thread.current[:without_bootsnap_cache] || false Thread.current[:without_bootsnap_cache] = true yield ensure Thread.current[:without_bootsnap_cache] = prev end |