debian-mirror-gitlab/lib/gitlab/tracking/helpers.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
281 B
Ruby
Raw Normal View History

2021-09-30 23:02:18 +05:30
# frozen_string_literal: true
module Gitlab
module Tracking
module Helpers
def dnt_enabled?
Gitlab::Utils.to_boolean(request.headers['DNT'])
end
def trackable_html_request?
request.format.html? && !dnt_enabled?
end
end
end
end