Typo: Update ip_blocks_controller .update! to match .create! (#40054)
This commit is contained in:
1 parent
5e67a11075
commit
cc6e78984a
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user