fix bur rejection
This commit is contained in:
@@ -35,7 +35,7 @@ class BulkUpdateRequestsController < ApplicationController
|
|||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
if @bulk_update_request.editable?(CurrentUser.user)
|
if @bulk_update_request.editable?(CurrentUser.user)
|
||||||
@bulk_update_request.destroy
|
@bulk_update_request.reject!
|
||||||
flash[:notice] = "Bulk update request deleted"
|
flash[:notice] = "Bulk update request deleted"
|
||||||
respond_with(@bulk_update_request, :location => bulk_update_requests_path)
|
respond_with(@bulk_update_request, :location => bulk_update_requests_path)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user