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

fix collection_item relation

parent c2e5b4c0
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class LearningObject < ApplicationRecord
# *current_user* destroy learning object
include Trackable
has_many :collection_items, as: :collectionable
has_many :collection_items, as: :collectionable, dependent: :destroy
has_many :collections, through: :collection_items
has_many :attachments, class_name: 'LearningObject::Attachment', autosave: true # autosave to allow import
......
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