Merge pull request #13 from differentreality/event_registration

Event registration
This commit is contained in:
Henne Vogelsang 2013-07-11 02:47:32 -07:00
commit 00af4e0aee
7 changed files with 29 additions and 2 deletions

View file

@ -2,7 +2,7 @@ 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
@ -10,6 +10,8 @@ class Event < ActiveRecord::Base
has_many :people, :through => :event_people
has_many :speakers, :through => :event_people, :source => :person, :conditions => {"event_people.event_role" => "speaker"}
belongs_to :event_type
has_and_belongs_to_many :registrations
belongs_to :track
belongs_to :room