5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 07:16:21 +00:00

fix: sintaxis correcta para encontrar uno solo

This commit is contained in:
f 2023-04-08 17:42:09 -03:00
parent a053fe6239
commit b09d051de1

View file

@ -4,13 +4,13 @@ class MetadataHasOne < MetadataBelongsTo
def had_one
return default_value if value_was.blank?
posts.find(uuid: value)
posts.find(value, uuid: true)
end
def has_one
return default_value if value.blank?
posts.find(uuid: value)
posts.find(value, uuid: true)
end
def belonged_to; end