Commit a15263ff5e3fbc01c18ee8dff9dd9edc5da9cce2

Authored by Victor Costa
1 parent 86405d39

Fix badge notification

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/gamification_plugin.rb
@@ -36,7 +36,7 @@ class GamificationPlugin < Noosfero::Plugin @@ -36,7 +36,7 @@ class GamificationPlugin < Noosfero::Plugin
36 def body_ending 36 def body_ending
37 proc do 37 proc do
38 if current_person.present? && response.status == 200 38 if current_person.present? && response.status == 200
39 - badges = current_person.badges.notification_pending 39 + badges = current_person.badges.notification_pending.all
40 current_person.sash.notify_all_badges_from_user 40 current_person.sash.notify_all_badges_from_user
41 render :file => 'gamification/display_notifications', :locals => {:badges => badges} 41 render :file => 'gamification/display_notifications', :locals => {:badges => badges}
42 else 42 else