summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-05 18:45:33 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-16 10:56:47 -0300
commit0d8ec9d85fd86dc43104d44ade78fd31555b2bdb (patch)
treeaf5b7dfc9780308dcfb29658cf22eb439a5a19d6
parent82f851e8a161e0e9982237536f692ca61ea4ec7e (diff)
downloadgitlab-ce-0d8ec9d85fd86dc43104d44ade78fd31555b2bdb.tar.gz
Fix Gitlab::GoogleCodeImport::Importer
-rw-r--r--lib/gitlab/google_code_import/importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/google_code_import/importer.rb b/lib/gitlab/google_code_import/importer.rb
index 62da327931f..3e43e850273 100644
--- a/lib/gitlab/google_code_import/importer.rb
+++ b/lib/gitlab/google_code_import/importer.rb
@@ -237,7 +237,7 @@ module Gitlab
def create_label(name)
color = nice_label_color(name)
- Label.create!(project_id: project.id, name: name, color: color)
+ Label.create!(subject: project, name: name, color: color)
end
def format_content(raw_content)