forked from saurabh/personal-patent
15 lines
257 B
Ruby
15 lines
257 B
Ruby
|
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
|