orbit-basic/app/models/asset.rb

13 lines
171 B
Ruby

class Asset
include Mongoid::Document
mount_uploader :data, AssetUploader
field :filename
field :description
validates_presence_of :filename, :data
end