0
0
Fork 0

Use hash arguments to select when possible (Rails 7.2) (#32917)

This commit is contained in:
Matt Jankowski 2024-11-18 09:58:45 -05:00 committed by GitHub
parent 3e44dca0b4
commit 477412d62a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 10 deletions

View file

@ -71,7 +71,7 @@ class Importer::StatusesIndexImporter < Importer::BaseImporter
end
def local_votes_scope
Poll.joins(:votes).where(votes: { account: Account.local }).select('polls.id, polls.status_id')
Poll.joins(:votes).where(votes: { account: Account.local }).select(polls: [:id, :status_id])
end
def local_statuses_scope