From 264667b2a96068d3e765d256a54cd7e4ddd29dc0 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 20 Jan 2017 14:49:04 -0500 Subject: Remove unnecessary `full_path_was` method The `parent` namespace concept didn't exist until 8.15, so this was causing a `NoMethodError`. --- app/models/namespace.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/models/namespace.rb b/app/models/namespace.rb index f952ed1a438..aaabeeecdb8 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -185,14 +185,6 @@ class Namespace < ActiveRecord::Base end def export_path - File.join(Gitlab::ImportExport.storage_path, full_path_was) - end - - def full_path_was - if parent - parent.full_path + '/' + path_was - else - path_was - end + File.join(Gitlab::ImportExport.storage_path, path_was) end end -- cgit v1.2.1