From 807b7cef842fb7542284f59d0386bdccfcff3d21 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 27 Jul 2015 17:50:35 +0800 Subject: [PATCH] small fix for nil user --- app/views/admin/admin_modules/_index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/admin_modules/_index.html.erb b/app/views/admin/admin_modules/_index.html.erb index 2cd7d94..7cce46f 100644 --- a/app/views/admin/admin_modules/_index.html.erb +++ b/app/views/admin/admin_modules/_index.html.erb @@ -22,7 +22,7 @@ <% else %> <%= rm.category.title %> <% end %> - <% user = User.find(rm.create_user_id) %> + <% user = User.find(rm.create_user_id) rescue "" %> <%= user.name rescue user.user_name %> <% if rm.approved %>