From 33408406788bb00f8fd819d180e8d75a645a0924 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 6 Apr 2015 10:32:19 -0300 Subject: [PATCH] Fix score information at user data extras --- lib/gamification_plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gamification_plugin.rb b/lib/gamification_plugin.rb index e0f55ac..5d99d66 100644 --- a/lib/gamification_plugin.rb +++ b/lib/gamification_plugin.rb @@ -10,7 +10,7 @@ class GamificationPlugin < Noosfero::Plugin def user_data_extras proc do - {:points => current_person.points} + current_person.present? ? {:points => current_person.points} : {} end end -- libgit2 0.21.2