This commit is contained in:
2026-05-23 07:21:15 +09:00
parent 7fcfc8b8aa
commit 7e89fb286a
+1 -1
View File
@@ -120,7 +120,7 @@ class Tag < ApplicationRecord
find_or_create_by_tag_name!(name, category: (cat || :general)).tap do |tag| find_or_create_by_tag_name!(name, category: (cat || :general)).tap do |tag|
tag.update!(category: cat) if cat && tag.category != cat tag.update!(category: cat) if cat && tag.category != cat
next if sections_by_tag.blank? next if sections_by_tag.empty?
sections[tag.id] ||= [] sections[tag.id] ||= []
sections[tag.id].concat(sections_by_tag) sections[tag.id].concat(sections_by_tag)