summaryrefslogtreecommitdiff
path: root/lib/gitlab/google_code_import/importer.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-20 17:07:56 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:24 -0200
commitcfedd42badc6b84457d1de35cb31988777462d5a (patch)
treeca0588b33e11d2f28104b320dcec6884ac148ec8 /lib/gitlab/google_code_import/importer.rb
parente2dd75c0a2d863c8e530e54f3a0a015bdec1e84f (diff)
downloadgitlab-ce-cfedd42badc6b84457d1de35cb31988777462d5a.tar.gz
Add ProjectLabel model
Diffstat (limited to 'lib/gitlab/google_code_import/importer.rb')
-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..ef8c3e35619 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)
+ project.labels.create!(name: name, color: color)
end
def format_content(raw_content)