|
|
|
@ -4,7 +4,7 @@ class Attachment < ApplicationRecord
|
|
|
|
|
include Publishable
|
|
|
|
|
include Lockable
|
|
|
|
|
|
|
|
|
|
belongs_to :container, polymorphic: true, touch: true, optional: true
|
|
|
|
|
belongs_to :container, polymorphic: true, optional: true
|
|
|
|
|
belongs_to :author, class_name: "User", foreign_key: :author_id
|
|
|
|
|
belongs_to :course, foreign_key: :container_id, optional: true
|
|
|
|
|
has_many :attachment_group_settings, :dependent => :destroy
|
|
|
|
|