personal-patent/app/models/patent_file.rb

15 lines
257 B
Ruby
Raw Permalink Normal View History

2014-07-04 03:48:33 +00:00
class PatentFile
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 :patent
end