このコミットが含まれているのは:
2025-07-09 23:58:03 +09:00
コミット b83fc6369a
4個のファイルの変更46行の追加38行の削除
+12
ファイルの表示
@@ -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