From a15263ff5e3fbc01c18ee8dff9dd9edc5da9cce2 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 13 Aug 2015 18:34:39 -0300 Subject: [PATCH] Fix badge notification --- 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 c0361f4..271deee 100644 --- a/lib/gamification_plugin.rb +++ b/lib/gamification_plugin.rb @@ -36,7 +36,7 @@ class GamificationPlugin < Noosfero::Plugin def body_ending proc do if current_person.present? && response.status == 200 - badges = current_person.badges.notification_pending + badges = current_person.badges.notification_pending.all current_person.sash.notify_all_badges_from_user render :file => 'gamification/display_notifications', :locals => {:badges => badges} else -- libgit2 0.21.2