debian-mirror-gitlab/lib/gitlab/with_request_store.rb
2020-04-08 18:37:08 +05:30

13 lines
215 B
Ruby

# frozen_string_literal: true
module Gitlab
module WithRequestStore
def with_request_store
RequestStore.begin!
yield
ensure
RequestStore.end!
RequestStore.clear!
end
end
end