personal-journal1/app/models/journal_paper_file.rb

12 lines
296 B
Ruby
Raw Normal View History

2014-06-12 10:27:26 +00:00
class JournalPaperFile
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Attributes::Dynamic
field :description, type: String, localize: true
field :title, type: String, localize: true
mount_uploader :journal_file, AssetUploader
belongs_to :journal_paper
end