mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 10:31:41 +00:00
lo que se indexa son los valores actuales, no todos los valores posibles
This commit is contained in:
parent
553b4f15f7
commit
0a23fe1edd
2 changed files with 5 additions and 1 deletions
|
@ -77,6 +77,10 @@ class MetadataBelongsTo < MetadataRelatedPosts
|
|||
@related_methods ||= %i[belongs_to belonged_to].freeze
|
||||
end
|
||||
|
||||
def indexable_values
|
||||
belongs_to&.title&.value
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def post_exists?
|
||||
|
|
|
@ -23,7 +23,7 @@ class MetadataRelatedPosts < MetadataArray
|
|||
end
|
||||
|
||||
def indexable_values
|
||||
values.keys
|
||||
posts.where(uuid: value).map(&:title).map(&:value)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue