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

Update collections_controller.rb

parent 736a9296
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,6 @@ class V1::CollectionsController < ApplicationController
# DELETE /v1/collections/1.json
def destroy
items = @collection.collection_items.select(:id)
p items
if !items.blank?
@collection.delete_items(items)
end
......
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