Application_Form/app/models/seminar_signup_contribute.rb

12 lines
354 B
Ruby
Raw Normal View History

2016-06-29 06:57:45 +00:00
class SeminarSignupContribute
include Mongoid::Document
include Mongoid::Timestamps
field :title
field :description
mount_uploader :file, AssetUploader
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