This commit is contained in:
2024-02-11 10:11:35 +11:00
parent 9ab228fde0
commit bfe3ee486d
2 changed files with 7 additions and 6 deletions

View File

@@ -16,11 +16,11 @@ module Admin
.commit
next if posts
.post_tags
.where(
post_id: post_id,
tag_id: tag[:id]
).count > 0
.post_tags
.where(
post_id: post_id,
tag_id: tag[:id]
).count > 0
posts.post_tags.changeset(:create, {
post_id: post_id,