Merge pull request #1823 from betagouv/better-code
Don’t reinvent the wheel with number_to_currency
This commit is contained in:
commit
84cac08bf0
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
module EtablissementHelper
|
module EtablissementHelper
|
||||||
def pretty_currency(capital_social)
|
def pretty_currency(capital_social)
|
||||||
number_to_currency(capital_social, delimiter: ' ', unit: '€', format: '%n %u')
|
number_to_currency(capital_social, locale: :fr)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue