Add Champ#for_api
This commit is contained in:
parent
083dfb4eaa
commit
866c74ce63
7 changed files with 25 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue