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

@ -47,6 +47,10 @@ class Champ < ApplicationRecord
value.presence
end
def for_api
value
end
def main_value_name
:value
end