このコミットが含まれているのは:
2026-10-04 15:24:27 +09:00
コミット 93e2f48355
4個のファイルの変更、179行の追加、159行の削除
+15
ファイルの表示
@@ -10,6 +10,21 @@ module WikiPageRepr
wiki_page.as_json(BASE)
end
def tag_description description
tag = description.tag
{ 'id' => description.id,
'tag_name_id' => tag.tag_name('ja')&.id,
'body' => description.body,
'created_user_id' => description.created_by_user_id,
'updated_user_id' => description.updated_by_user_id,
'created_at' => description.created_at,
'updated_at' => description.updated_at,
'discarded_at' => nil,
'version_no' => description.version_no,
'title' => tag.name('ja'),
'deprecated_at' => tag.deprecated_at }
end
def many wiki_pages
wiki_pages.map { |p| base(p) }
end