Commit 28c538cc authored by Michael Kozono's avatar Michael Kozono Committed by Rémy Coutable

Fix EE override

This is needed since lib/api/internal.rb was changed to
lib/api/internal/base.rb in CE. The fact that the EE port didn't fail
CI reveals that there are no tests in EE for this functionality.
parent d9e7951c
---
title: Fix LFS authentication URL in EE
merge_request: 16146
author:
type: fixed
# frozen_string_literal: true
module EE
module API
module Internal
extend ActiveSupport::Concern
prepended do
helpers do
extend ::Gitlab::Utils::Override
override :lfs_authentication_url
def lfs_authentication_url(project)
project.lfs_http_url_to_repo(params[:operation])
end
end
end
end
end
end
# frozen_string_literal: true
module EE
module API
module Internal
module Base
extend ActiveSupport::Concern
prepended do
helpers do
extend ::Gitlab::Utils::Override
override :lfs_authentication_url
def lfs_authentication_url(project)
project.lfs_http_url_to_repo(params[:operation])
end
end
end
end
end
end
end
......@@ -271,3 +271,5 @@ module API
end
end
end
API::Internal::Base.prepend_if_ee('EE::API::Internal::Base')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment