diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-26 09:11:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-26 09:11:43 +0300 |
commit | a45525af6e86bf78b3c288e3ffcbdbb84d3e9997 (patch) | |
tree | 9cf2fa9b46f704b9f3b02bf4da25b15c66a0a6a5 /app/models/packages | |
parent | 3cfd74f7e176175693f5c9b23c552230f830d33a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/packages')
-rw-r--r-- | app/models/packages/package.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/packages/package.rb b/app/models/packages/package.rb index 317db51f4ef..17c5415939c 100644 --- a/app/models/packages/package.rb +++ b/app/models/packages/package.rb @@ -149,6 +149,7 @@ class Packages::Package < ApplicationRecord end scope :preload_composer, -> { preload(:composer_metadatum) } scope :preload_npm_metadatum, -> { preload(:npm_metadatum) } + scope :preload_pypi_metadatum, -> { preload(:pypi_metadatum) } scope :without_nuget_temporary_name, -> { where.not(name: Packages::Nuget::TEMPORARY_PACKAGE_NAME) } |