12 lines
262 B
Ruby
12 lines
262 B
Ruby
|
class CourseAttachment
|
||
|
include Mongoid::Document
|
||
|
include Mongoid::Timestamps
|
||
|
|
||
|
field :title, localize: true
|
||
|
field :description, localize: true
|
||
|
field :should_destroy, :type => Boolean
|
||
|
|
||
|
mount_uploader :file, AssetUploader
|
||
|
|
||
|
belongs_to :course_assignment
|
||
|
end
|