From 71cd203ac4d23e266872efb1f16760a882a2b77e Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 17 Feb 2016 13:09:46 -0300 Subject: [PATCH] Do not crash when there is no point type associated to a point --- views/gamification/dashboard.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/gamification/dashboard.html.erb b/views/gamification/dashboard.html.erb index 13b726a..29c575c 100644 --- a/views/gamification/dashboard.html.erb +++ b/views/gamification/dashboard.html.erb @@ -22,7 +22,7 @@

<%= _('Latest Score Points') %>

<% @target.score_points.order('created_at desc').limit(5).each do |point| %> -
+
<%= point.num_points %> <%= score_point_target_link point, _(score_point_category(point)) %> <%= point.created_at %> -- libgit2 0.21.2