Skip to content
Snippets Groups Projects
Commit 3f4e77a1 authored by Clarissa's avatar Clarissa
Browse files

#255: fix destroy learning_object with Institution owner

parent eeedc04f
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ class V1::LearningObjectsController < ApplicationController
# DELETE /learning_objects/1
# DELETE /learning_objects/1.json
def destroy
LearningObject.destroy(@learning_object)
@learning_object.destroy
render status: :ok
end
......
class AddLearningObjectsCountToInstitutions < ActiveRecord::Migration[5.0]
def change
add_column :institutions, :learning_objects_count, :integer, default: 0
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment