Serialize champ repetition for tags

closes #4272
This commit is contained in:
Paul Chavard 2019-09-11 16:04:42 +02:00
parent 1eac6beb51
commit b97cbd3402
9 changed files with 60 additions and 1 deletions

View file

@ -54,6 +54,10 @@ class Champ < ApplicationRecord
value
end
def for_tag
value.present? ? value.to_s : ''
end
def main_value_name
:value
end