Merge branch 'rails5-fix-job-artifact-hashed-path' into 'master'

Rails 5: fix hashed_path? method that looks up file_location that doesn't exist…

See merge request gitlab-org/gitlab-ce!21510
This commit is contained in:
Rémy Coutable 2018-09-05 12:09:25 +00:00
commit c6d315b4bb
2 changed files with 7 additions and 1 deletions

View file

@ -87,7 +87,7 @@ module Ci
end
def hashed_path?
super || self.file_location.nil?
super || self.try(:file_location).nil?
end
def expire_in

View file

@ -0,0 +1,6 @@
---
title: 'Rails 5: fix hashed_path? method that looks up file_location that doesn''t
exist when running certain migration specs'
merge_request: 21510
author: Jasper Maes
type: other