faq/app/models/qa_file.rb

15 lines
249 B
Ruby
Raw Normal View History

2014-05-08 07:33:39 +00:00
class QaFile
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 :qa
end