diff options
author | James Lopez <james@jameslopez.es> | 2016-04-06 10:36:30 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-04-06 10:36:30 +0200 |
commit | b97654393e326095c7d95ccc1eb9f583a3b23da9 (patch) | |
tree | 0e16ecfa3baaafc65593921fdbe09b8a96f940c3 /app | |
parent | 5e51fce4dcd62997f372aed44badc844f98851e9 (diff) | |
download | gitlab-ce-b97654393e326095c7d95ccc1eb9f583a3b23da9.tar.gz |
fix some issues with credentials
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_import_data.rb | 4 |
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 |