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