summaryrefslogtreecommitdiff
path: root/lib/gitlab/safe_request_store.rb
Commit message (Collapse)AuthorAgeFilesLines
* Change SafeRequestStore#write to accept an options hashDouglas Barbosa Alexandre2018-12-171-0/+8
| | | | | | | | | This change the write to accept an options hash to make it compatible with ActiveSupport::Cache::Store#write method. The options hash are not passed to the underlying cache implementation because RequestStore#write accepts only a key, and value params.
* Use a null object with RequestStoreMichael Kozono2018-09-241-0/+23
Makes it easier and safer to use RequestStore because you don't need to check `RequestStore.active?` before using it. You just have to use `Gitlab::SafeRequestStore` instead.