Application_Form/app/models/seminar_signup_contribute.rb

13 lines
357 B
Ruby
Raw Normal View History

2016-06-29 06:57:45 +00:00
class SeminarSignupContribute
include Mongoid::Document
include Mongoid::Timestamps
field :title
mount_uploader :file, AssetUploader
2019-11-28 04:39:36 +00:00
field :description
2016-06-29 06:57:45 +00:00
belongs_to :seminar_signup
has_many :seminar_submission_values, autosave: true, dependent: :destroy
accepts_nested_attributes_for :seminar_submission_values, :allow_destroy => true
2016-06-29 06:57:45 +00:00
end