Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
liberate
crabgrass
Commits
6556490e
Commit
6556490e
authored
May 06, 2019
by
dgt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove raw sql from query which will be deprecated in rails 6
parent
f7725bc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/models/user/cache.rb
app/models/user/cache.rb
+1
-2
No files found.
app/models/user/cache.rb
View file @
6556490e
...
...
@@ -198,8 +198,7 @@ module User::Cache
# Exclude large groups from calculating peer relationships
group_ids
-=
Group
.
large
.
pluck
(
:id
)
ids
=
User
.
joins
(
:memberships
)
.
where
(
memberships:
{
group_id:
group_ids
})
.
pluck
(
'DISTINCT users.id'
)
.
where
(
memberships:
{
group_id:
group_ids
}).
distinct
.
pluck
(
:id
)
ids
-
[
id
]
end
...
...
Write
Preview
Markdown
is supported
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