Merge pull request #1823 from betagouv/better-code

Don’t reinvent the wheel with number_to_currency
This commit is contained in:
Paul Chavard 2018-04-10 15:09:31 +02:00 committed by GitHub
commit 84cac08bf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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