Typo: Update ip_blocks_controller .update! to match .create! (#40054)

This commit is contained in:
Shlee
2026-08-05 22:44:42 +09:30
committed by GitHub
parent 5e67a11075
commit cc6e78984a

View File

@@ -33,7 +33,7 @@ class Api::V1::Admin::IpBlocksController < Api::BaseController
def update
authorize @ip_block, :update?
@ip_block.update(resource_params)
@ip_block.update!(resource_params)
log_action :update, @ip_block
render json: @ip_block, serializer: REST::Admin::IpBlockSerializer
end