personal-lab/app/models/lab_file.rb

15 lines
251 B
Ruby
Raw Permalink Normal View History

2014-07-03 11:25:50 +00:00
class LabFile
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, AssetUploader
field :description, localize: true
field :should_destroy, :type => Boolean
field :title, localize: true
belongs_to :lab
end