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

10 lines
166 B
Ruby
Raw Permalink Normal View History

2014-06-30 10:26:12 +00:00
class Preview
include Mongoid::Document
field :image, type: String
belongs_to :extension
belongs_to :templates
mount_uploader :image, PreviewUploader
end