1
0
Fork 0

serialize max length attribute for wizard fields

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-01-19 12:17:54 +05:30
Ursprung f27ca60d24
Commit 5f121215d5

Datei anzeigen

@ -8,6 +8,7 @@ class CustomWizard::FieldSerializer < ::WizardFieldSerializer
:limit,
:property,
:content,
:max_length,
:char_counter
def label
@ -56,6 +57,10 @@ class CustomWizard::FieldSerializer < ::WizardFieldSerializer
object.choices.present?
end
def max_length
object.max_length
end
def char_counter
object.char_counter
end