Merge branch 'rails' of 0xacab.org:sutty/sutty into rails
This commit is contained in:
commit
5c36de818f
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