diff options
Diffstat (limited to 'app/services/packages')
-rw-r--r-- | app/services/packages/rubygems/metadata_extraction_service.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/packages/rubygems/metadata_extraction_service.rb b/app/services/packages/rubygems/metadata_extraction_service.rb index b3bac1854d7..872d68e1dbd 100644 --- a/app/services/packages/rubygems/metadata_extraction_service.rb +++ b/app/services/packages/rubygems/metadata_extraction_service.rb @@ -49,7 +49,11 @@ module Packages # rubocop:enable Metrics/CyclomaticComplexity def metadatum - Packages::Rubygems::Metadatum.safe_find_or_create_by!(package: package) + # safe_find_or_create_by! was originally called here. + # We merely switched to `find_or_create_by!` + # rubocop: disable CodeReuse/ActiveRecord + Packages::Rubygems::Metadatum.find_or_create_by!(package: package) + # rubocop: enable CodeReuse/ActiveRecord end end end |