Merge pull request #1643 from basecamp/account-to-cache-key

Add `Current.account` to cache key
This commit is contained in:
Jason Zimdars
2025-11-20 10:27:59 -06:00
committed by GitHub
+1 -1
View File
@@ -63,7 +63,7 @@
<% accounts = Current.identity.accounts %>
<% if accounts.many? %>
<% cache [ Current.identity, accounts ] do %>
<% cache [ Current.identity, accounts, Current.account ] do %>
<%= collapsible_nav_section "Accounts" do %>
<% accounts.each do |account| %>
<%= filter_place_menu_item landing_url(script_name: account.slug), account.name, "marker", current: account == Current.account %>