From c5b94878ac75f7dc69cdd3addc81db2b6d8f4360 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Tue, 11 Oct 2016 19:14:32 -0300 Subject: [PATCH] We need this variable later --- app/services/badge_granter.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/services/badge_granter.rb b/app/services/badge_granter.rb index b5206b61b99..ece099e4f1f 100644 --- a/app/services/badge_granter.rb +++ b/app/services/badge_granter.rb @@ -312,6 +312,9 @@ class BadgeGranter SiteSetting.default_locale end + # Make this variable in this scope + notification = nil + I18n.with_locale(notification_locale) do notification = Notification.create!( user_id: row.user_id,