Module: ComponentsHelper

Defined in:
app/helpers/components_helper.rb

Instance Method Summary collapse

Instance Method Details

#gitlab_workhorse_versionObject


4
5
6
7
8
9
10
# File 'app/helpers/components_helper.rb', line 4

def gitlab_workhorse_version
  if request.headers['Gitlab-Workhorse'].present?
    request.headers['Gitlab-Workhorse'].split('-').first
  else
    Gitlab::Workhorse.version
  end
end