orbit-personalpatent/app/models/writing_patent_file.rb

15 lines
272 B
Ruby
Raw Normal View History

2014-01-15 11:20:52 +00:00
class WritingPatentFile
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 :writing_patent
end