5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-03 12:46:08 +00:00

las relaciones pueden estar vacías

This commit is contained in:
f 2020-11-16 14:07:50 -03:00
parent 5ddfac78e0
commit 781cba24de

View file

@ -76,6 +76,8 @@ class MetadataHasAndBelongsToMany < MetadataBelongsTo
end
def post_exists?
return true if empty? && can_be_empty?
!belongs_to.empty?
end