]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/i18n.rb
Add geolink class to login/logout referer links
[rails.git] / config / initializers / i18n.rb
index b4399a9f868348640deece25f915345fda95fe5a..6e09300170d239d2fbc9171d90ffca06cc2d265d 100644 (file)
@@ -3,10 +3,10 @@ module I18n
     module PluralizationFallback
       def pluralize(locale, entry, count)
         super
-      rescue InvalidPluralizationData => ex
-        raise ex unless ex.entry.key?(:other)
+      rescue InvalidPluralizationData => e
+        raise e unless e.entry.key?(:other)
 
-        ex.entry[:other]
+        e.entry[:other]
       end
     end
   end