Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions BrainPortal/lib/exception_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def record_not_deleted(exception)
format.html { redirect_to default_redirect }
format.js { render :partial => "shared/flash_update", :status => 403 }
format.xml { render :xml => {:error => exception.message}, :status => 403 }
format.json { render :json => {:error => "The #{exception.model} with id = #{exception.id}} fails to delete",
format.json { render :json => {:error => "The #{exception.model} with id = #{exception.id} fails to delete",
:message => CANNOT_DELETE_MSG,
:type => "delete failed",
:model => exception.model,
:id => expectation.id
:id => exception.id
},
:status => 403 }
end
Expand Down
Loading