summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-20 14:49:04 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-01-20 14:50:39 -0500
commit264667b2a96068d3e765d256a54cd7e4ddd29dc0 (patch)
tree28c9df5b8995bc7d389a0f2e8c32c62b42ff721c
parent53e64cea6df59a6aa90b706f7b4fc7446a766adc (diff)
downloadgitlab-ce-264667b2a96068d3e765d256a54cd7e4ddd29dc0.tar.gz
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