Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-21 00:09:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-21 00:09:52 +0300
commit900c5cc840cccdce182aef5d5050a7950de9ad00 (patch)
tree08bf4419b68ce3e41abde6bc793da8c2c4527b78 /doc/development/ee_features.md
parent1bf106b17275c87cf8baa199599f113f154a52fe (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/ee_features.md')
-rw-r--r--doc/development/ee_features.md30
1 files changed, 17 insertions, 13 deletions
diff --git a/doc/development/ee_features.md b/doc/development/ee_features.md
index fb00fe748d0..fc4180bede7 100644
--- a/doc/development/ee_features.md
+++ b/doc/development/ee_features.md
@@ -673,17 +673,19 @@ class definition to make it easy and clear:
```ruby
module API
- class JobArtifacts < Grape::API::Instance
- # EE::API::JobArtifacts would override the following helpers
- helpers do
- def authorize_download_artifacts!
- authorize_read_builds!
+ module Ci
+ class JobArtifacts < Grape::API::Instance
+ # EE::API::Ci::JobArtifacts would override the following helpers
+ helpers do
+ def authorize_download_artifacts!
+ authorize_read_builds!
+ end
end
end
end
end
-API::JobArtifacts.prepend_mod_with('API::JobArtifacts')
+API::Ci::JobArtifacts.prepend_mod_with('API::Ci::JobArtifacts')
```
And then we can follow regular object-oriented practices to override it:
@@ -691,14 +693,16 @@ And then we can follow regular object-oriented practices to override it:
```ruby
module EE
module API
- module JobArtifacts
- extend ActiveSupport::Concern
+ module Ci
+ module JobArtifacts
+ extend ActiveSupport::Concern
- prepended do
- helpers do
- def authorize_download_artifacts!
- super
- check_cross_project_pipelines_feature!
+ prepended do
+ helpers do
+ def authorize_download_artifacts!
+ super
+ check_cross_project_pipelines_feature!
+ end
end
end
end