Add Champ#for_api
This commit is contained in:
parent
083dfb4eaa
commit
866c74ce63
7 changed files with 25 additions and 21 deletions
|
@ -47,6 +47,10 @@ class Champ < ApplicationRecord
|
|||
value.presence
|
||||
end
|
||||
|
||||
def for_api
|
||||
value
|
||||
end
|
||||
|
||||
def main_value_name
|
||||
:value
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue