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

View file

@ -8,7 +8,8 @@ class Registration < ActiveRecord::Base
attr_accessible :person_id, :conference_id, :attending_social_events, :attending_with_partner,
:using_affiliated_lodging, :arrival, :departure, :person_attributes, :other_dietary_choice, :dietary_choice_id,
:handicapped_access_required, :supporter_registration_attributes, :social_event_ids, :other_special_needs
:handicapped_access_required, :supporter_registration_attributes, :social_event_ids, :other_special_needs,
:event_ids
accepts_nested_attributes_for :person
accepts_nested_attributes_for :supporter_registration