diff --git a/app/decorators/entreprise_decorator.rb b/app/decorators/entreprise_decorator.rb index 57d4b954e..fe34dbace 100644 --- a/app/decorators/entreprise_decorator.rb +++ b/app/decorators/entreprise_decorator.rb @@ -1,7 +1,6 @@ class EntrepriseDecorator < Draper::Decorator delegate_all - def raison_sociale_or_name raison_sociale.nil? ? nom + ' ' + prenom : raison_sociale end @@ -28,10 +27,10 @@ class EntrepriseDecorator < Draper::Decorator end def pretty_capital_social - h.number_to_currency(capital_social, delimiter: ' ', unit: '€', format: "%n %u") + h.number_to_currency(capital_social, delimiter: ' ', unit: '€', format: '%n %u') end def pretty_date_creation Time.at(date_creation).strftime('%d-%m-%Y') end -end \ No newline at end of file +end