Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-20 22:49:04 +0300
committerRobert Speicher <rspeicher@gmail.com>2017-01-20 22:49:04 +0300
commitd95103ad5c4e07c8ac66f876040b6daac9d27ff2 (patch)
tree3d6115237022ba564e25a777892c497789ac1fb9
parent999b0be35dfa9ace97a9e2b393ed46cf6e673932 (diff)
Remove unnecessary `full_path_was` method
The `parent` namespace concept didn't exist until 8.15, so this was causing a `NoMethodError`.
-rw-r--r--app/models/namespace.rb10
1 files changed, 1 insertions, 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