Commit c37a9ef3 authored by Jarka Kadlecová's avatar Jarka Kadlecová

Make ActiveRecordSubscriber rails 5 compatible

parent b8198897
---
title: Make ActiveRecordSubscriber rails 5 compatible
merge_request:
author:
type: other
......@@ -4,7 +4,7 @@ module Gitlab
attach_to :active_record
def sql(event)
unless event.payload[:name] == 'CACHE'
unless event.payload.fetch(:cached, event.payload[:name] == 'CACHE')
Transaction.current&.increment
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment