このコミットが含まれているのは:
2026-10-15 20:02:34 +09:00
コミット c142f08e6c
10個のファイルの変更、111行の追加、47行の削除
+4 -3
ファイルの表示
@@ -135,10 +135,10 @@ class WikiPagesController < ApplicationController
name = title.delete_prefix(TagGroupRepr::PREFIX)
parsed = TagGroupMarkdownParser.parse(body:, group: nil)
group = TagGroupOperation.create!(
name:, **parsed.except(:compatibility_body), actor: current_user)
name:, **parsed.except(:compatibility_body), actor: current_user,
require_compatibility: true)
version = current_group_version(group)
return render_group_representation(TagGroupRepr.one(group), version,
body: parsed.fetch(:compatibility_body),
status: :created)
end
@@ -179,7 +179,8 @@ class WikiPagesController < ApplicationController
name = title.delete_prefix(TagGroupRepr::PREFIX)
parsed = TagGroupMarkdownParser.parse(body:, group:)
TagGroupOperation.update!(
group:, name:, **parsed.except(:compatibility_body), actor: current_user)
group:, name:, **parsed.except(:compatibility_body), actor: current_user,
require_compatibility: true)
return head :ok
end