From 0b52d059860aa96c8f8c35e5c871bc4fb8a862a2 Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 11 Feb 2021 23:55:12 +0100 Subject: [FIX] Prevent debug from failing without a user --- app/views/application/_user_info.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/application/_user_info.html.erb b/app/views/application/_user_info.html.erb index a1a42d2..07318bd 100644 --- a/app/views/application/_user_info.html.erb +++ b/app/views/application/_user_info.html.erb @@ -13,5 +13,5 @@ <% content_for :debug do %> -<%= @current_user.avatar_url %> + <%= @current_user.avatar_url if @current_user %> <% end %> -- cgit v1.2.3