Changed delete to destroy when removing relation

pull/1641/head
Marek Takac 10 years ago committed by Alex Coles
parent 3d6948662e
commit ff6714bfaf
  1. 3
      lib/api/v3/relations/relations_api.rb

@ -31,8 +31,7 @@ module API
namespace ':relation_id' do
delete do
authorize(:manage_work_package_relations, context: @work_package.project)
relation = Relation.find(params[:relation_id])
relation.delete
Relation.destroy(params[:id])
status 204
end
end

Loading…
Cancel
Save