Don’t reinvent the wheel with number_to_currency

This commit is contained in:
gregoirenovel 2018-04-10 12:35:47 +02:00
parent 5942a661d2
commit 03c045aa1a

View file

@ -1,5 +1,5 @@
module EtablissementHelper
def pretty_currency(capital_social)
number_to_currency(capital_social, delimiter: ' ', unit: '€', format: '%n %u')
number_to_currency(capital_social, locale: :fr)
end
end