タグの合併処理追加(#282) (#284)

#282

#282

#282

#282

#282

#282

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #284
This commit was merged in pull request #284.
This commit is contained in:
2026-03-08 15:46:05 +09:00
parent 7885f6dfb9
commit 16e9b8ca49
13 changed files with 138 additions and 51 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ class WikiLine < ApplicationRecord
sha = Digest::SHA256.hexdigest(body)
now = Time.current
upsert({ sha256: sha, body:, created_at: now, updated_at: now })
upsert(sha256: sha, body:, created_at: now, updated_at: now)
find_by!(sha256: sha)
end