mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 05:26:22 +00:00
Merge branch 'hotfix-metadata-belongs-to' into 'rails'
Devolver el tipo de dato correcto See merge request sutty/sutty!48
This commit is contained in:
commit
e3aba348a2
1 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,13 @@ class MetadataBelongsTo < MetadataRelatedPosts
|
|||
''
|
||||
end
|
||||
|
||||
# Obtiene el valor desde el documento.
|
||||
#
|
||||
# @return [String]
|
||||
def document_value
|
||||
document.data[name.to_s]
|
||||
end
|
||||
|
||||
def validate
|
||||
super
|
||||
|
||||
|
|
Loading…
Reference in a new issue