このコミットが含まれているのは:
2025-12-21 04:29:01 +09:00
コミット 4c7c41c991
3個のファイルの変更136行の追加176行の削除
+11
ファイルの表示
@@ -39,6 +39,17 @@ class TagsController < ApplicationController
end
def update
return head :unauthorized unless current_user
return head :forbidden unless current_user.member?
tag = Tag.find(params[:id])
attrs = { name: params[:name].presence,
category: params[:category].presence }.compact
tag.update!(attrs) if attrs.present?
render json: tag
end
def destroy