From dc1328f5b391ae8f633eb1d98c6d1323bb9cfc31 Mon Sep 17 00:00:00 2001 From: Andy Callaghan Date: Sat, 16 Dec 2017 15:23:31 +0000 Subject: [PATCH] Fix currency formats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I noticed € and £ were around the wrong way, so checked them all. --- app/helpers/application_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1c7f04c9..9976445c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -79,7 +79,7 @@ def to_aud(satoshies) end def to_eur(satoshies) - format('%.2f€', rate('EUR', satoshies)) + format('€%.2f', rate('EUR', satoshies)) end def to_brl(satoshies) @@ -91,11 +91,11 @@ def to_cad(satoshies) end def to_cny(satoshies) - format('%.2f¥', rate('CNY', satoshies)) + format('¥%.2f', rate('CNY', satoshies)) end def to_gbp(satoshies) - format('%.2f£', rate('GBP', satoshies)) + format('£%.2f', rate('GBP', satoshies)) end def to_idr(satoshies) @@ -107,7 +107,7 @@ def to_ils(satoshies) end def to_jpy(satoshies) - format('%.2f¥', rate('JPY', satoshies)) + format('¥%.2f', rate('JPY', satoshies)) end def to_mxn(satoshies)