summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/json_hash_builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/import_export/json_hash_builder.rb')
-rw-r--r--lib/gitlab/import_export/json_hash_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/json_hash_builder.rb b/lib/gitlab/import_export/json_hash_builder.rb
index b145f37c052..a92e3862361 100644
--- a/lib/gitlab/import_export/json_hash_builder.rb
+++ b/lib/gitlab/import_export/json_hash_builder.rb
@@ -27,7 +27,7 @@ module Gitlab
# {:merge_requests=>[:merge_request_diff, :notes]}
def process_model_objects(model_object_hash)
json_config_hash = {}
- current_key = model_object_hash.keys.first
+ current_key = model_object_hash.first.first
model_object_hash.values.flatten.each do |model_object|
@attributes_finder.parse(current_key) { |hash| json_config_hash[current_key] ||= hash }