forked from saurabh/personal-journal
12 lines
296 B
Ruby
12 lines
296 B
Ruby
|
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
|