personal-course/app/models/course_syllabus_file.rb

12 lines
253 B
Ruby
Raw Normal View History

2015-12-29 11:35:44 +00:00
class CourseSyllabusFile
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
end