venue_management/app/models/seminar_item.rb

12 lines
297 B
Ruby
Raw Normal View History

2016-06-29 06:57:45 +00:00
class SeminarItem
include Mongoid::Document
include Mongoid::Timestamps
field :title, localize: true
belongs_to :seminar_main
has_many :seminar_item_contents, :autosave => true, :dependent => :destroy
accepts_nested_attributes_for :seminar_item_contents, :allow_destroy => true
end