forked from spen/seminar
12 lines
354 B
Ruby
12 lines
354 B
Ruby
class SeminarSignupContribute
|
|
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
|
|
field :title
|
|
field :description
|
|
mount_uploader :file, AssetUploader
|
|
belongs_to :seminar_signup
|
|
has_many :seminar_submission_values, autosave: true, dependent: :destroy
|
|
accepts_nested_attributes_for :seminar_submission_values, :allow_destroy => true
|
|
end |