Add Champ#for_api

This commit is contained in:
gregoirenovel 2018-12-28 17:59:14 +01:00
parent 083dfb4eaa
commit 866c74ce63
7 changed files with 25 additions and 21 deletions

View file

@ -4,4 +4,8 @@ class Champs::DecimalNumberChamp < Champ
def for_export
value.present? ? value.to_f : nil
end
def for_api
value.present? ? value.to_f : nil
end
end