mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 13:36:23 +00:00
las relaciones pueden estar vacías
This commit is contained in:
parent
5ddfac78e0
commit
781cba24de
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ class MetadataHasAndBelongsToMany < MetadataBelongsTo
|
||||||
end
|
end
|
||||||
|
|
||||||
def post_exists?
|
def post_exists?
|
||||||
|
return true if empty? && can_be_empty?
|
||||||
|
|
||||||
!belongs_to.empty?
|
!belongs_to.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue