add option to pre register to events

This commit is contained in:
differentreality 2013-07-11 07:43:52 +03:00
parent 8286c8130d
commit 750e31c11a
7 changed files with 28 additions and 2 deletions

View file

@ -2,13 +2,15 @@ class Event < ActiveRecord::Base
include ActiveRecord::Transitions
has_paper_trail
attr_accessible :title, :subtitle, :abstract, :description, :event_type_id, :people_attributes, :person,
:proposal_additional_speakers, :track_id, :video_id, :video_type
:proposal_additional_speakers, :track_id, :video_id, :video_type, :require_registration
acts_as_commentable
has_many :event_people, :dependent => :destroy
has_many :event_attachments, :dependent => :destroy
has_many :people, :through => :event_people
belongs_to :event_type
has_and_belongs_to_many :registrations
belongs_to :track
belongs_to :room