summaryrefslogtreecommitdiff
path: root/app/models/project_import_data.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-04-06 10:36:30 +0200
committerJames Lopez <james@jameslopez.es>2016-04-06 10:36:30 +0200
commitb97654393e326095c7d95ccc1eb9f583a3b23da9 (patch)
tree0e16ecfa3baaafc65593921fdbe09b8a96f940c3 /app/models/project_import_data.rb
parent5e51fce4dcd62997f372aed44badc844f98851e9 (diff)
downloadgitlab-ce-b97654393e326095c7d95ccc1eb9f583a3b23da9.tar.gz
fix some issues with credentials
Diffstat (limited to 'app/models/project_import_data.rb')
-rw-r--r--app/models/project_import_data.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_import_data.rb b/app/models/project_import_data.rb
index 225cbda15b1..e984832685b 100644
--- a/app/models/project_import_data.rb
+++ b/app/models/project_import_data.rb
@@ -22,7 +22,7 @@ class ProjectImportData < ActiveRecord::Base
before_validation :symbolize_credentials
def symbolize_credentials
- return if credentials.blank?
- credentials.deep_symbolize_keys!
+ # bang doesn't work here
+ self.credentials = self.credentials.deep_symbolize_keys unless self.credentials.blank?
end
end