style check

This commit is contained in:
Tanguy PATTE 2015-08-20 16:43:18 +02:00
parent a1e9b938d6
commit 4412aceeb8

View file

@ -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
end