Add admin attachments panel
This commit is contained in:
parent
15683f583d
commit
bd839a8abc
8 changed files with 82 additions and 0 deletions
18
app/controllers/admin/media_attachments_controller.rb
Normal file
18
app/controllers/admin/media_attachments_controller.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Admin
|
||||
class MediaAttachmentsController < BaseController
|
||||
def index
|
||||
authorize :account, :index?
|
||||
|
||||
@media_attachments = filtered_attachments.page(params[:page])
|
||||
@form = Form::MediaAttachmentsBatch.new
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def filtered_attachments
|
||||
MediaAttachment.recently_attachments
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue