1
0
Fork 0
forked from gitea/nas
nas/app/controllers/admin/media_attachments_controller.rb
2023-02-28 09:16:47 +09:00

18 lines
384 B
Ruby

# 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