From f9e110aa9b38cf37808f875827e56813eb94c4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 20 Jun 2020 14:37:23 +0200 Subject: [PATCH] Simplify method names in admin menu component We no longer need to use the `menu_` prefix, since now these methods aren't helper methods anymore, and so their names won't collide with other helpers. --- app/components/admin/menu_component.html.erb | 22 +++++++++--------- app/components/admin/menu_component.rb | 24 ++++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/app/components/admin/menu_component.html.erb b/app/components/admin/menu_component.html.erb index b7a85121c..5c2d3edd2 100644 --- a/app/components/admin/menu_component.html.erb +++ b/app/components/admin/menu_component.html.erb @@ -25,7 +25,7 @@ <% if feature?(:polls) %> -
  • "> +
  • "> <%= link_to admin_polls_path do %> <%= t("admin.menu.polls") %> @@ -43,7 +43,7 @@ <% end %> <% if feature?(:budgets) %> -
  • "> +
  • "> <%= link_to admin_budgets_path do %> <%= t("admin.menu.budgets") %> @@ -56,7 +56,7 @@ <%= t("admin.menu.title_booths") %> -