orbit-basic/app/models/asset.rb

13 lines
171 B
Ruby
Raw Normal View History

2010-02-01 09:24:28 +00:00
class Asset
include Mongoid::Document
2010-02-01 09:24:28 +00:00
mount_uploader :data, AssetUploader
2010-02-01 09:24:28 +00:00
field :filename
field :description
2010-02-01 09:24:28 +00:00
validates_presence_of :filename, :data
2010-02-05 08:15:16 +00:00
end