Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d503dbe8
Commit
d503dbe8
authored
May 05, 2021
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `prepend_ee_mod` to `prepend_mod`
parent
c5274720
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
18 additions
and
21 deletions
+18
-21
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+1
-1
app/controllers/projects/merge_requests/creations_controller.rb
...ntrollers/projects/merge_requests/creations_controller.rb
+1
-1
app/graphql/types/alert_management/http_integration_type.rb
app/graphql/types/alert_management/http_integration_type.rb
+1
-1
app/helpers/profiles_helper.rb
app/helpers/profiles_helper.rb
+1
-1
app/models/ci/pipeline_artifact.rb
app/models/ci/pipeline_artifact.rb
+1
-1
app/models/concerns/ci/artifactable.rb
app/models/concerns/ci/artifactable.rb
+1
-1
app/models/project_setting.rb
app/models/project_setting.rb
+1
-1
app/models/vulnerability.rb
app/models/vulnerability.rb
+1
-1
app/services/concerns/alert_management/alert_processing.rb
app/services/concerns/alert_management/alert_processing.rb
+1
-1
app/services/issues/after_create_service.rb
app/services/issues/after_create_service.rb
+1
-1
app/services/issues/create_service.rb
app/services/issues/create_service.rb
+1
-1
app/services/users/activity_service.rb
app/services/users/activity_service.rb
+1
-1
app/validators/json_schema_validator.rb
app/validators/json_schema_validator.rb
+1
-1
config/initializers/0_inject_enterprise_edition_module.rb
config/initializers/0_inject_enterprise_edition_module.rb
+0
-3
doc/development/ee_features.md
doc/development/ee_features.md
+3
-3
lib/api/api.rb
lib/api/api.rb
+1
-1
lib/gitlab/search_context.rb
lib/gitlab/search_context.rb
+1
-1
No files found.
app/controllers/application_controller.rb
View file @
d503dbe8
...
...
@@ -556,4 +556,4 @@ class ApplicationController < ActionController::Base
end
end
ApplicationController
.
prepend_
ee_
mod
ApplicationController
.
prepend_mod
app/controllers/projects/merge_requests/creations_controller.rb
View file @
d503dbe8
...
...
@@ -141,4 +141,4 @@ class Projects::MergeRequests::CreationsController < Projects::MergeRequests::Ap
end
end
Projects
::
MergeRequests
::
CreationsController
.
prepend_
ee_
mod
Projects
::
MergeRequests
::
CreationsController
.
prepend_mod
app/graphql/types/alert_management/http_integration_type.rb
View file @
d503dbe8
...
...
@@ -21,4 +21,4 @@ module Types
end
end
Types
::
AlertManagement
::
HttpIntegrationType
.
prepend_
ee_
mod
Types
::
AlertManagement
::
HttpIntegrationType
.
prepend_mod
app/helpers/profiles_helper.rb
View file @
d503dbe8
...
...
@@ -51,4 +51,4 @@ module ProfilesHelper
end
end
ProfilesHelper
.
prepend_
ee_
mod
ProfilesHelper
.
prepend_mod
app/models/ci/pipeline_artifact.rb
View file @
d503dbe8
...
...
@@ -60,4 +60,4 @@ module Ci
end
end
Ci
::
PipelineArtifact
.
prepend_
ee_
mod
Ci
::
PipelineArtifact
.
prepend_mod
app/models/concerns/ci/artifactable.rb
View file @
d503dbe8
...
...
@@ -43,4 +43,4 @@ module Ci
end
end
Ci
::
Artifactable
.
prepend_
ee_
mod
Ci
::
Artifactable
.
prepend_mod
app/models/project_setting.rb
View file @
d503dbe8
...
...
@@ -21,4 +21,4 @@ class ProjectSetting < ApplicationRecord
end
end
ProjectSetting
.
prepend_
ee_
mod
ProjectSetting
.
prepend_mod
app/models/vulnerability.rb
View file @
d503dbe8
...
...
@@ -17,4 +17,4 @@ class Vulnerability < ApplicationRecord
end
end
Vulnerability
.
prepend_
ee_
mod
Vulnerability
.
prepend_mod
app/services/concerns/alert_management/alert_processing.rb
View file @
d503dbe8
...
...
@@ -129,4 +129,4 @@ module AlertManagement
end
end
AlertManagement
::
AlertProcessing
.
prepend_
ee_
mod
AlertManagement
::
AlertProcessing
.
prepend_mod
app/services/issues/after_create_service.rb
View file @
d503dbe8
...
...
@@ -10,4 +10,4 @@ module Issues
end
end
Issues
::
AfterCreateService
.
prepend_
ee_
mod
Issues
::
AfterCreateService
.
prepend_mod
app/services/issues/create_service.rb
View file @
d503dbe8
...
...
@@ -75,4 +75,4 @@ module Issues
end
end
Issues
::
CreateService
.
prepend_
ee_
mod
Issues
::
CreateService
.
prepend_mod
app/services/users/activity_service.rb
View file @
d503dbe8
...
...
@@ -38,4 +38,4 @@ module Users
end
end
Users
::
ActivityService
.
prepend_
ee_
mod
Users
::
ActivityService
.
prepend_mod
app/validators/json_schema_validator.rb
View file @
d503dbe8
...
...
@@ -54,4 +54,4 @@ class JsonSchemaValidator < ActiveModel::EachValidator
end
end
JsonSchemaValidator
.
prepend_
ee_
mod
JsonSchemaValidator
.
prepend_mod
config/initializers/0_inject_enterprise_edition_module.rb
View file @
d503dbe8
...
...
@@ -27,17 +27,14 @@ module InjectEnterpriseEditionModule
def
prepend_mod
(
with_descendants:
false
)
prepend_mod_for
(
name
,
with_descendants:
with_descendants
)
end
alias_method
:prepend_ee_mod
,
:prepend_mod
def
extend_mod
each_extension_for
(
name
,
Object
,
&
method
(
:extend
))
end
alias_method
:extend_ee_mod
,
:extend_mod
def
include_mod
each_extension_for
(
name
,
Object
,
&
method
(
:include
))
end
alias_method
:include_ee_mod
,
:include_mod
private
...
...
doc/development/ee_features.md
View file @
d503dbe8
...
...
@@ -94,11 +94,11 @@ class User < ActiveRecord::Base
# ... lots of code here ...
end
User
.
prepend_
ee_
mod
User
.
prepend_mod
```
Do not use methods such as
`prepend`
,
`extend`
, and
`include`
. Instead, use
`prepend_
ee_mod`
,
`extend_ee_mod`
, or
`include_e
e_mod`
. These methods will try to
`prepend_
mod`
,
`extend_mod`
, or
`includ
e_mod`
. These methods will try to
find the relevant EE module by the name of the receiver module, for example;
```
ruby
...
...
@@ -108,7 +108,7 @@ module Vulnerabilities
end
end
Vulnerabilities
::
Finding
.
prepend_
ee_
mod
Vulnerabilities
::
Finding
.
prepend_mod
```
will prepend the module named
`::EE::Vulnerabilities::Finding`
.
...
...
lib/api/api.rb
View file @
d503dbe8
...
...
@@ -297,4 +297,4 @@ module API
end
end
API
::
API
.
prepend_
ee_
mod
API
::
API
.
prepend_mod
lib/gitlab/search_context.rb
View file @
d503dbe8
...
...
@@ -164,4 +164,4 @@ module Gitlab
end
end
Gitlab
::
SearchContext
::
Builder
.
prepend_
ee_
mod
Gitlab
::
SearchContext
::
Builder
.
prepend_mod
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment