Make the CheckboxChamp export similar to YesNoChamp

Previously, nil values would be returned as nil
and not as off
This commit is contained in:
gregoirenovel 2018-12-28 15:54:40 +01:00
parent 4a6930b60a
commit f27717ab23

View file

@ -8,4 +8,8 @@ class Champs::CheckboxChamp < Champ
def to_s
value == 'on' ? 'oui' : 'non'
end
def for_export
value == 'on' ? 'on' : 'off'
end
end