mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 11:26:22 +00:00
fix: sintaxis correcta para encontrar uno solo
This commit is contained in:
parent
a053fe6239
commit
b09d051de1
1 changed files with 2 additions and 2 deletions
|
@ -4,13 +4,13 @@ class MetadataHasOne < MetadataBelongsTo
|
||||||
def had_one
|
def had_one
|
||||||
return default_value if value_was.blank?
|
return default_value if value_was.blank?
|
||||||
|
|
||||||
posts.find(uuid: value)
|
posts.find(value, uuid: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def has_one
|
def has_one
|
||||||
return default_value if value.blank?
|
return default_value if value.blank?
|
||||||
|
|
||||||
posts.find(uuid: value)
|
posts.find(value, uuid: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def belonged_to; end
|
def belonged_to; end
|
||||||
|
|
Loading…
Reference in a new issue