nccu-news/app/models/news_bulletin_file.rb

15 lines
242 B
Ruby
Raw Normal View History

2014-11-07 08:44:11 +00:00
# encoding: utf-8
class NewsBulletinFile
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, AssetUploader
field :description, localize: true
field :title, localize: true
belongs_to :news_bulletin
end