aunque tengan etiquetas los campos son requeridos
This commit is contained in:
parent
8ac8af0c5c
commit
327314e247
1 changed files with 4 additions and 2 deletions
|
@ -248,13 +248,15 @@ class Post
|
|||
|
||||
def human
|
||||
h = key.humanize
|
||||
h += ' *' if required?
|
||||
|
||||
h
|
||||
end
|
||||
|
||||
def label
|
||||
(complex? && contents.dig('label')) || human
|
||||
h = (complex? && contents.dig('label')) || human
|
||||
h += ' *' if required?
|
||||
|
||||
h
|
||||
end
|
||||
|
||||
def help
|
||||
|
|
Loading…
Reference in a new issue