diff --git a/app/controllers/concerns/subjectable_controller.rb b/app/controllers/concerns/subjectable_controller.rb index f53c01d0e603725c2ec1e759ce1ec286af17d3d7..9e712be0faa1f91599f7f66e1f61cc3185a7a938 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