Skip to content

Commit

Permalink
ブロック変数を修正し、number_of_users_by_regionへの不要なアクセスを廃止
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrimprin committed Sep 23, 2024
1 parent 07a8851 commit 18ad9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/users/areas/_areas_menu.html.slim
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
- number_of_users_by_region.each do |region, _|
- number_of_users_by_region.each do |region, number_of_users_by_area|
nav.page-nav.a-card
header.page-nav__header
h2.page-nav__title
span.page-nav__title-inner = region
hr.a-border-tint
ul.page-nav__items
- number_of_users_by_region[region].each do |area, number_of_users|
- number_of_users_by_area.each do |area, number_of_users|
li.page-nav__item
= link_to "#{area}(#{number_of_users})", users_area_path(area:), class: 'page-nav__item-link a-text-link'

0 comments on commit 18ad9c4

Please sign in to comment.