discourse/app/controllers/admin/admin_notices_controller.rb
Jarek Radosz 71834c898f
DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073)
Co-authored-by: Loïc Guitaut <loic@discourse.org>
2025-10-06 16:11:01 +02:00

10 lines
300 B
Ruby

# frozen_string_literal: true
class Admin::AdminNoticesController < Admin::StaffController
def destroy
AdminNotices::Dismiss.call(service_params) do
on_success { render(json: success_json) }
on_failure { render(json: failed_json, status: :unprocessable_entity) }
end
end
end