Module: Kiev::RequestStore::Mixin

Included in:
Que::Job, Shoryuken::Middleware::RequestStore, Sidekiq::RequestStore
Defined in:
lib/kiev/request_store.rb

Instance Method Summary collapse

Instance Method Details

#wrap_request_store_10Object Also known as: wrap_request_store



18
19
20
21
22
23
# File 'lib/kiev/request_store.rb', line 18

def wrap_request_store_10
  ::RequestStore.clear!
  yield
ensure
  ::RequestStore.clear!
end

#wrap_request_store_13Object



10
11
12
13
14
15
16
# File 'lib/kiev/request_store.rb', line 10

def wrap_request_store_13
  ::RequestStore.begin!
  yield
ensure
  ::RequestStore.end!
  ::RequestStore.clear!
end