Commit c64083075ee95b450d56bc2e22e0e36dcf1a2889

Authored by Victor Costa
1 parent f54c5d44
Exists in master

Display message when enable/disable gamification for a profile

controllers/gamification_plugin_myprofile_controller.rb
... ... @@ -2,10 +2,12 @@ class GamificationPluginMyprofileController < MyProfileController
2 2  
3 3 def enable_gamification
4 4 toggle_gamification(false)
  5 + session[:notice] = _('Gamification enabled')
5 6 end
6 7  
7 8 def disable_gamification
8 9 toggle_gamification(true)
  10 + session[:notice] = _('Gamification disabled')
9 11 end
10 12  
11 13 protected
... ...