Commit f15548b8776e48de94e42ed581a9cafff4157a81
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'rails3_AI3033-serpro_integration' into stable
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/serpro_integration/lib/serpro_integration_plugin/gitlab_integration.rb
@@ -10,7 +10,7 @@ class SerproIntegrationPlugin::GitlabIntegration | @@ -10,7 +10,7 @@ class SerproIntegrationPlugin::GitlabIntegration | ||
10 | 10 | ||
11 | def create_group(group_name) | 11 | def create_group(group_name) |
12 | #FIXME find group by name | 12 | #FIXME find group by name |
13 | - group = @client.groups.select {|group| group.name == group_name}.first | 13 | + group = @client.groups(:search => group_name).select {|group| group.name == group_name}.first |
14 | group ||= @client.create_group(group_name, group_name) | 14 | group ||= @client.create_group(group_name, group_name) |
15 | @group = group | 15 | @group = group |
16 | end | 16 | end |