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:
authorJames Lopez <james@jameslopez.es>2016-04-05 16:41:15 +0300
committerJames Lopez <james@jameslopez.es>2016-04-05 16:41:15 +0300
commit5e51fce4dcd62997f372aed44badc844f98851e9 (patch)
tree5599e0de61315e6274449c11c1fa011c91f8d749 /db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
parent850180aa393e2cfc124bb9687a123a196cff734c (diff)
some refactoring to symbolise keys across importers and left a TODO
Diffstat (limited to 'db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb')
-rw-r--r--db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb b/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
index 8fef93233ef..93e040fce28 100644
--- a/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
+++ b/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
@@ -51,9 +51,9 @@ class RemoveWrongImportUrlFromProjects < ActiveRecord::Migration
def encrypt_data(data_hash, credentials_keys)
new_data_hash = {}
credentials_keys.each do |key|
- new_data_hash[key] = data_hash.delete(key) if data_hash[key]
+ new_data_hash[key.to_sym] = data_hash.delete(key) if data_hash[key]
end
- new_data_hash
+ new_data_hash.deep_symbolize_keys
end
def in_transaction