From 4cd28c95b31f5b214efde73f7ccf814e5316cd72 Mon Sep 17 00:00:00 2001 From: Marcela Ribeiro de Oliveira <mro15@inf.ufpr.br> Date: Mon, 23 Jan 2017 11:17:21 -0200 Subject: [PATCH] now an user can delete subjects separately --- app/controllers/concerns/subjectable_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/concerns/subjectable_controller.rb b/app/controllers/concerns/subjectable_controller.rb index f53c01d0..9e712be0 100644 --- a/app/controllers/concerns/subjectable_controller.rb +++ b/app/controllers/concerns/subjectable_controller.rb @@ -14,10 +14,10 @@ module SubjectableController # DELETE /v1/learning_objects/1/subjects # DELETE /v1/learning_objects/1/subjects.json - #def unsubjecting - # @owner.remove_subjects(subject_params[:id]) - # render json: subjects.tags, status: :ok - #end + def unsubjecting + subjectable.remove_subjects(ids: params[:subjects]) + render json: subjectable.subjects, status: :ok + end protected -- GitLab