From b7bb7736a2a6553bad8ac144b46c1972fdbf23c9 Mon Sep 17 00:00:00 2001 From: Mischa The Evil Date: Wed, 27 Jan 2021 08:18:25 +0100 Subject: [PATCH 3/5] Set :wiki menu_item for WikisController#destroy. This action is executed inside the project wiki scope after r16916, thus we can better set the menu_item accordingly. --- app/controllers/wikis_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb index b696156c3..f4b54b690 100644 --- a/app/controllers/wikis_controller.rb +++ b/app/controllers/wikis_controller.rb @@ -18,7 +18,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class WikisController < ApplicationController - menu_item :settings + menu_item :wiki before_action :find_project, :authorize # Delete a project's wiki -- 2.26.0.windows.1