Use hash arguments to select
when possible (Rails 7.2) (#32917)
This commit is contained in:
parent
3e44dca0b4
commit
477412d62a
4 changed files with 10 additions and 10 deletions
|
@ -12,7 +12,7 @@ class Api::V1::Accounts::FamiliarFollowersController < Api::BaseController
|
|||
private
|
||||
|
||||
def set_accounts
|
||||
@accounts = Account.without_suspended.where(id: account_ids).select('id, hide_collections')
|
||||
@accounts = Account.without_suspended.where(id: account_ids).select(:id, :hide_collections)
|
||||
end
|
||||
|
||||
def familiar_followers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue