aunque tengan etiquetas los campos son requeridos

This commit is contained in:
f 2019-04-22 17:00:04 -03:00
parent 8ac8af0c5c
commit 327314e247
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -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