Use tag helper for current-user meta

This commit is contained in:
Jose Farias
2024-10-27 11:50:42 -06:00
parent ee96d4425e
commit 5ea2004adb
+1 -3
View File
@@ -9,9 +9,7 @@
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<% if Current.user %>
<meta name="current-user-id" content="<%= Current.user.id %>">
<% end %>
<%= tag.meta name: "current-user-id", content: Current.user.id if Current.user %>
<%= yield :head %>