このコミットが含まれているのは:
2026-06-03 23:34:33 +09:00
コミット cb21525698
11個のファイルの変更81行の追加50行の削除
+2 -2
ファイルの表示
@@ -46,7 +46,7 @@ class WikiPagesController < ApplicationController
def diff
id = params[:id]
return render_bad_request('id は必須です.', field: :id) if id.blank?
return render_bad_request('id は必須です.') if id.blank?
from = params[:from].presence
to = params[:to].presence
@@ -103,7 +103,7 @@ class WikiPagesController < ApplicationController
render json: WikiPageRepr.base(page), status: :created
rescue ActiveRecord::RecordInvalid => e
render_validation_errors e.record
render_validation_error e.record
rescue ActiveRecord::RecordNotUnique
render_record_not_unique
end