Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
ef7bfd98a5a7
Commit
ef7bfd98
authored
Oct 28, 2016
by
Douglas Barbosa Alexandre
Browse files
Use select instead of pluck on Project.group_ids
parent
3036a736b894
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
ef7bfd98
...
...
@@ -390,7 +390,7 @@
end
def
group_ids
joins
(
:namespace
).
where
(
namespaces:
{
type:
'Group'
}).
pluck
(
:namespace_id
)
joins
(
:namespace
).
where
(
namespaces:
{
type:
'Group'
}).
select
(
:namespace_id
)
end
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment