73322a0e55
Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
15 lines
258 B
Ruby
15 lines
258 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|