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