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

Merge branch 'bugs' into 'master'

#255 - bugs

See merge request !433
parents eeedc04f 3f4e77a1
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ class V1::LearningObjectsController < ApplicationController ...@@ -63,7 +63,7 @@ class V1::LearningObjectsController < ApplicationController
# DELETE /learning_objects/1 # DELETE /learning_objects/1
# DELETE /learning_objects/1.json # DELETE /learning_objects/1.json
def destroy def destroy
LearningObject.destroy(@learning_object) @learning_object.destroy
render status: :ok render status: :ok
end 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.
Finish editing this message first!
Please register or to comment