]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/i18n.rb
Improve parameters alignment
[rails.git] / config / initializers / i18n.rb
index 89ff677fb2c4aeacd53ebf06ae9cca24ffa02bd4..6e09300170d239d2fbc9171d90ffca06cc2d265d 100644 (file)
@@ -3,9 +3,10 @@ module I18n
     module PluralizationFallback
       def pluralize(locale, entry, count)
         super
-      rescue InvalidPluralizationData => ex
-        raise ex unless ex.entry.key?(:other)
-        ex.entry[:other]
+      rescue InvalidPluralizationData => e
+        raise e unless e.entry.key?(:other)
+
+        e.entry[:other]
       end
     end
   end