module-and-template-store/app/models/template.rb

12 lines
226 B
Ruby
Raw Normal View History

2013-12-25 10:39:05 +00:00
class Template
include Mongoid::Document
include Mongoid::Timestamps
field :title, type: String
field :author, type: String
mount_uploader :preview, ImageUploader
mount_uploader :template, ProductUploader
end