Fix admin image manager design

This commit is contained in:
KMY 2023-02-28 09:39:50 +09:00
parent bd839a8abc
commit f930b9db47
6 changed files with 42 additions and 8 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.order(status_id: 'DESC') }
scope :recently_attachments, -> { attached.where(remote_url: '').order(status_id: 'DESC') }
default_scope { order(id: :asc) }