about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-04-04 18:42:43 +0200
committerGitHub <noreply@github.com>2022-04-04 18:42:43 +0200
commit393db67ecc4c272204f2331b64d7456d69835b15 (patch)
tree101066d4ab7edfdd8e1935a11d3525707901ca1d /app/helpers
parent3381a0e6e050438680f38c97ac9332045b8d66f4 (diff)
parentd01c5b0b8c330fff7e0d73bcb509129a4311f24e (diff)
Merge pull request #1731 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index d482ad1a2..ce25e26f9 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -19,8 +19,11 @@ module ApplicationHelper
     # is looked up from the locales definition, and rails-i18n comes with
     # values that don't seem to make much sense for many languages, so
     # override these values with a default of 3 digits of precision.
-    options[:precision] = 3
-    options[:strip_insignificant_zeros] = true
+    options = options.merge(
+      precision: 3,
+      strip_insignificant_zeros: true,
+      significant: true
+    )
 
     number_to_human(number, **options)
   end