summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/relation_factory.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-06-22 09:00:10 +0200
committerJames Lopez <james@jameslopez.es>2018-06-22 09:00:10 +0200
commit3d3e441c91ac793272723b5f20eae5b9cf19fcc2 (patch)
treeb472d75ff5c9130b7fcfb3a94d1c3c9176270734 /lib/gitlab/import_export/relation_factory.rb
parent92ec58abeb21793ed8087e7acac77c84153aa50b (diff)
downloadgitlab-ce-3d3e441c91ac793272723b5f20eae5b9cf19fcc2.tar.gz
refactor code based on feedback
Diffstat (limited to 'lib/gitlab/import_export/relation_factory.rb')
-rw-r--r--lib/gitlab/import_export/relation_factory.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/relation_factory.rb b/lib/gitlab/import_export/relation_factory.rb
index 5efebf867ad..c5e8aa54f5d 100644
--- a/lib/gitlab/import_export/relation_factory.rb
+++ b/lib/gitlab/import_export/relation_factory.rb
@@ -266,7 +266,7 @@ module Gitlab
hash.delete('project_id')
end
- GroupProjectFinder.find_or_create(relation_class, finder_hash)
+ GroupProjectObjectBuilder.build(relation_class, finder_hash)
end
end
end