Fix admin image manager design
This commit is contained in:
parent
bd839a8abc
commit
f930b9db47
6 changed files with 42 additions and 8 deletions
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue