Apply Rails/SafeNavigation rule in ERB files

This commit is contained in:
Javi Martín
2020-09-30 22:34:14 +02:00
parent 0911b89d16
commit 2eb255e85a
5 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user&.id %>">
<head>
<%= render "layouts/common_head", default_title: setting["org_name"] %>
<%= render "layouts/tracking_data" %>