diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-11 03:09:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-11 03:09:41 +0300 |
commit | d15f01ae2667094ed69f875cc65ce4c8aa34481b (patch) | |
tree | 216ffe30f1c5801b5df58edd59aed61ccfb68dbe /app/models/dependency_proxy | |
parent | e109a7799eb2c5598211c4cc1e0c83d5beb44018 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/dependency_proxy')
-rw-r--r-- | app/models/dependency_proxy/manifest.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/dependency_proxy/manifest.rb b/app/models/dependency_proxy/manifest.rb index 98a051dd81f..f3c7f34e0d7 100644 --- a/app/models/dependency_proxy/manifest.rb +++ b/app/models/dependency_proxy/manifest.rb @@ -11,4 +11,6 @@ class DependencyProxy::Manifest < ApplicationRecord validates :digest, presence: true mount_file_store_uploader DependencyProxy::FileUploader + + scope :find_or_initialize_by_file_name, ->(file_name) { find_or_initialize_by(file_name: file_name) } end |