mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
11 lines
282 B
Ruby
11 lines
282 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: 422) }
|
|
end
|
|
end
|
|
end
|