fix bur rejection

This commit is contained in:
Toks
2015-04-06 18:30:02 -04:00
parent 4421ce88d1
commit 2d99501f91

View File

@@ -35,7 +35,7 @@ class BulkUpdateRequestsController < ApplicationController
def destroy
if @bulk_update_request.editable?(CurrentUser.user)
@bulk_update_request.destroy
@bulk_update_request.reject!
flash[:notice] = "Bulk update request deleted"
respond_with(@bulk_update_request, :location => bulk_update_requests_path)
else