mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:11:42 +00:00
el valor por defecto de las relaciones es un array
This commit is contained in:
parent
c5eb06f687
commit
5ddfac78e0
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
# diferencia entre has_many y belongs_to.
|
||||
class MetadataHasAndBelongsToMany < MetadataBelongsTo
|
||||
def default_value
|
||||
super || []
|
||||
[]
|
||||
end
|
||||
|
||||
# Posts a los que pertenece. Memoizamos por value para obtener
|
||||
|
|
Loading…
Reference in a new issue