11 lines
215 B
Ruby
11 lines
215 B
Ruby
module Gitlab
|
|
module QueryLimiting
|
|
class ActiveSupportSubscriber < ActiveSupport::Subscriber
|
|
attach_to :active_record
|
|
|
|
def sql(*)
|
|
Transaction.current&.increment
|
|
end
|
|
end
|
|
end
|
|
end
|