Skip to content
Snippets Groups Projects
Commit 4cd28c95 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

now an user can delete subjects separately

parent 06ac0a84
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,10 @@ module SubjectableController ...@@ -14,10 +14,10 @@ module SubjectableController
# DELETE /v1/learning_objects/1/subjects # DELETE /v1/learning_objects/1/subjects
# DELETE /v1/learning_objects/1/subjects.json # DELETE /v1/learning_objects/1/subjects.json
#def unsubjecting def unsubjecting
# @owner.remove_subjects(subject_params[:id]) subjectable.remove_subjects(ids: params[:subjects])
# render json: subjects.tags, status: :ok render json: subjectable.subjects, status: :ok
#end end
protected protected
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment