mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:46:21 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue