Remove default_scope
from MediaAttachment
class (#28043)
This commit is contained in:
parent
02a98210e8
commit
bb0efe16e6
11 changed files with 15 additions and 16 deletions
|
@ -50,7 +50,7 @@ class AccountsController < ApplicationController
|
|||
end
|
||||
|
||||
def only_media_scope
|
||||
Status.joins(:media_attachments).merge(@account.media_attachments.reorder(nil)).group(:id)
|
||||
Status.joins(:media_attachments).merge(@account.media_attachments).group(:id)
|
||||
end
|
||||
|
||||
def no_replies_scope
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue