• Patrick Bajao's avatar
    Add reuasable Gitlab::Tracking::Helpers module · fb3ad067
    Patrick Bajao authored
    There are several controllers/concerns/modules that checks for the
    DNT header and the logic are the same.
    
    To make them DRY, a new Gitlab::Tracking::Helpers module was added
    to encapsulate the following methods:
    - `dnt_enabled?`
    - `trackable_html_request?`
    fb3ad067
helpers.rb 281 Bytes