5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 23:01:41 +00:00

recordar la relación inversa

This commit is contained in:
f 2020-11-27 20:51:56 -03:00
parent 2f6aeaf63f
commit 1ac4e02bf9

View file

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