discourse/app/controllers/admin/admin_notices_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
266 B
Ruby
Raw Normal View History

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