Adds the current user to the html element in application layout

This commit is contained in:
kikito
2015-12-16 18:45:22 +01:00
parent 900f11fd49
commit 60099e982b

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="es">
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />