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:
Diffstat (limited to 'app/models/project_import_data.rb')
-rw-r--r--app/models/project_import_data.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project_import_data.rb b/app/models/project_import_data.rb
index ba4334055d6..fa6055ff64d 100644
--- a/app/models/project_import_data.rb
+++ b/app/models/project_import_data.rb
@@ -17,4 +17,8 @@ class ProjectImportData < ActiveRecord::Base
serialize :data, JSON
validates :project, presence: true
+
+ def stringified_credentials
+ JSON[credentials.to_json]
+ end
end