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 namespace ':relation_id' do
delete do delete do
authorize(:manage_work_package_relations, context: @work_package.project) authorize(:manage_work_package_relations, context: @work_package.project)
relation = Relation.find(params[:relation_id]) Relation.destroy(params[:id])
relation.delete
status 204 status 204
end end
end end

Loading…
Cancel
Save