mirror of
https://github.com/funamitech/mastodon
synced 2024-11-24 23:26:42 +09:00
7c152acb2c
And update all descriptions
22 lines
414 B
Ruby
22 lines
414 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Admin
|
|
class SiteUploadsController < BaseController
|
|
before_action :set_site_upload
|
|
|
|
def destroy
|
|
authorize :settings, :destroy?
|
|
|
|
@site_upload.destroy!
|
|
|
|
redirect_to admin_settings_path, notice: I18n.t('admin.site_uploads.destroyed_msg')
|
|
end
|
|
|
|
private
|
|
|
|
def set_site_upload
|
|
@site_upload = SiteUpload.find(params[:id])
|
|
end
|
|
end
|
|
end
|