debian-mirror-gitlab/app/controllers/concerns/workhorse_request.rb
2017-08-17 22:00:37 +05:30

13 lines
227 B
Ruby

module WorkhorseRequest
extend ActiveSupport::Concern
included do
before_action :verify_workhorse_api!
end
private
def verify_workhorse_api!
Gitlab::Workhorse.verify_api_request!(request.headers)
end
end