This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user