Add publish/unpublish controls to announcements in admin UI (#12967)

This commit is contained in:
Eugen Rochko 2020-01-27 11:05:33 +01:00 committed by GitHub
parent 4363d06986
commit 663ea84b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 7 deletions

View file

@ -177,7 +177,13 @@ Rails.application.routes.draw do
resources :email_domain_blocks, only: [:index, :new, :create, :destroy]
resources :action_logs, only: [:index]
resources :warning_presets, except: [:new]
resources :announcements, except: [:show]
resources :announcements, except: [:show] do
member do
post :publish
post :unpublish
end
end
resource :settings, only: [:edit, :update]