mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 02:36:22 +00:00
recordar la relación inversa
This commit is contained in:
parent
2f6aeaf63f
commit
1ac4e02bf9
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class MetadataHasMany < MetadataRelatedPosts
|
|||
#
|
||||
# @return [Nil,Symbol]
|
||||
def inverse
|
||||
layout.metadata.dig(name, 'inverse')&.to_sym
|
||||
@inverse ||= layout.metadata.dig(name, 'inverse')&.to_sym
|
||||
end
|
||||
|
||||
# Actualizar las relaciones inversas. Hay que buscar la diferencia
|
||||
|
|
Loading…
Reference in a new issue