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
17749b18
Commit
17749b18
authored
Nov 14, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Gitlab::Utils::Override to mark the method as overridden
parent
6b6e3007
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
ee/app/models/geo/repository_updated_event.rb
ee/app/models/geo/repository_updated_event.rb
+7
-8
No files found.
ee/app/models/geo/repository_updated_event.rb
View file @
17749b18
...
...
@@ -2,6 +2,7 @@
module
Geo
class
RepositoryUpdatedEvent
<
ApplicationRecord
extend
::
Gitlab
::
Utils
::
Override
include
Geo
::
Model
include
Geo
::
Eventable
...
...
@@ -25,15 +26,13 @@ module Geo
REPOSITORY_TYPE_MAP
[
repository
.
repo_type
]
end
override
:consumer_klass_name
def
consumer_klass_name
klass
=
if
design?
::
Gitlab
::
Geo
::
LogCursor
::
Events
::
DesignRepositoryUpdatedEvent
else
self
.
class
end
klass
.
name
.
demodulize
if
design?
::
Gitlab
::
Geo
::
LogCursor
::
Events
::
DesignRepositoryUpdatedEvent
.
name
.
demodulize
else
super
end
end
end
end
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