From 57dbb0220a257557bb0f484b6719c06e2e67fd6d Mon Sep 17 00:00:00 2001 From: 16yuki0702 Date: Fri, 27 Jul 2018 15:45:42 +0900 Subject: [PATCH] Fix active item on admin menu --- app/helpers/admin_helper.rb | 4 ++-- app/views/admin/_menu.html.erb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 988d03a00..24cce7945 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -21,11 +21,11 @@ module AdminHelper end def menu_polls? - %w[polls questions answers].include?(controller_name) + %w[polls questions answers booth_assignments officer_assignments recounts results].include?(controller_name) end def menu_booths? - %w[officers booths officer_assignments booth_assignments recounts results shifts].include?(controller_name) + %w[officers booths shifts].include?(controller_name) end def menu_profiles? diff --git a/app/views/admin/_menu.html.erb b/app/views/admin/_menu.html.erb index ffec03232..49c204c30 100644 --- a/app/views/admin/_menu.html.erb +++ b/app/views/admin/_menu.html.erb @@ -7,7 +7,7 @@ <%= t("admin.menu.title_polls") %> @@ -110,7 +110,7 @@