Fix media attaches panel title

This commit is contained in:
KMY 2023-02-28 15:33:20 +09:00
parent 1e67d25856
commit 87b9fd9624
2 changed files with 2 additions and 2 deletions

View file

@ -209,7 +209,7 @@ class MediaAttachment < ApplicationRecord
scope :local, -> { where(remote_url: '') }
scope :remote, -> { where.not(remote_url: '') }
scope :cached, -> { remote.where.not(file_file_name: nil) }
scope :recently_attachments, -> { attached.where(remote_url: '').order(status_id: 'DESC') }
scope :local_attached, -> { attached.where(remote_url: '') }
default_scope { order(id: :asc) }