display correct submenu in admin menu

This commit is contained in:
Juanjo Bazán
2016-12-27 17:47:54 +01:00
parent 2aff1d71fe
commit 3ad648dd63
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@
<strong><%= t("admin.menu.title_polls") %></strong>
</a>
<ul id="polls_menu" <%= "class=is-active" if menu_polls? %>>
<li <%= 'class=active' if controller_name == 'polls' %>>
<li <%= 'class=active' if ["polls", "officer_assignments"].include? controller_name %>>
<%= link_to t('admin.menu.polls'), admin_polls_path %>
</li>