From 5ea2004adb381d6ee060282f58f24ca994b8e7a2 Mon Sep 17 00:00:00 2001 From: Jose Farias Date: Sun, 27 Oct 2024 11:50:42 -0600 Subject: [PATCH] Use tag helper for current-user meta --- app/views/layouts/application.html.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 74b6ec274..3dde34229 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -9,9 +9,7 @@ <%= csrf_meta_tags %> <%= csp_meta_tag %> - <% if Current.user %> - - <% end %> + <%= tag.meta name: "current-user-id", content: Current.user.id if Current.user %> <%= yield :head %>