diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-20 15:09:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-20 15:09:02 +0300 |
commit | 98252e0dd60cbcb316231085e206d9872f243b8a (patch) | |
tree | 304021f4190aabcc74f1359866c0efff84995729 /lib/gitlab/gl_repository | |
parent | 2ee5991b42717969af93cb30d863aafab04dff8a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/gl_repository')
-rw-r--r-- | lib/gitlab/gl_repository/repo_type.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/gl_repository/repo_type.rb b/lib/gitlab/gl_repository/repo_type.rb index 01bc27f963b..6918344aa40 100644 --- a/lib/gitlab/gl_repository/repo_type.rb +++ b/lib/gitlab/gl_repository/repo_type.rb @@ -13,8 +13,8 @@ module Gitlab @repository_accessor = repository_accessor end - def identifier_for_subject(subject) - "#{name}-#{subject.id}" + def identifier_for_repositorable(repositorable) + "#{name}-#{repositorable.id}" end def fetch_id(identifier) @@ -34,8 +34,8 @@ module Gitlab project? ? "" : ".#{name}" end - def repository_for(subject) - repository_accessor.call(subject) + def repository_for(repositorable) + repository_accessor.call(repositorable) end end end |