This commit is contained in:
2025-07-09 23:58:03 +09:00
parent 9be4bb1532
commit b83fc6369a
4 changed files with 46 additions and 38 deletions
+12
View File
@@ -19,6 +19,18 @@ class Tag < ApplicationRecord
scope :nico_tags, -> { where category: :nico }
def self.tagme
@tagme ||= Tag.find_or_initialize_by(name: 'タグ希望') do |tag|
tag.category = 'meta'
end
end
def self.bot
@bot ||= Tag.find_or_initialize_by(name: 'bot操作') do |tag|
tag.category = 'meta'
end
end
private
def nico_tag_name_must_start_with_nico