blob: d6c05e1e25674e1a3ed3b6e505db0e29483acbf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# frozen_string_literal: true
module Gitlab
module WithRequestStore
def with_request_store
RequestStore.begin!
yield
ensure
RequestStore.end!
RequestStore.clear!
end
end
end
|