serialize max length attribute for wizard fields
Dieser Commit ist enthalten in:
Ursprung
f27ca60d24
Commit
5f121215d5
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
|
@ -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
|
||||||
|
|
Laden …
In neuem Issue referenzieren