mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 10:16:22 +00:00
fix: guardar valores únicos
This commit is contained in:
parent
ef05f10b70
commit
a36e0e6964
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ class MetadataHasMany < MetadataRelatedPosts
|
||||||
def save
|
def save
|
||||||
super
|
super
|
||||||
|
|
||||||
|
self[:value] = self[:value].uniq
|
||||||
|
|
||||||
return true unless changed?
|
return true unless changed?
|
||||||
return true unless inverse?
|
return true unless inverse?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue