announcement-test/app/models/bulletin_file.rb

14 lines
217 B
Ruby
Raw Normal View History

2014-05-01 08:41:00 +00:00
class BulletinFile
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, AssetUploader
field :description, localize: true
field :title, localize: true
belongs_to :bulletin
end