mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
Adding social events, which can be used on the registration page
This commit is contained in:
parent
ba721772b9
commit
3933e89a9c
14 changed files with 112 additions and 6 deletions
|
|
@ -4,11 +4,13 @@ class Registration < ActiveRecord::Base
|
|||
belongs_to :dietary_choice
|
||||
|
||||
has_one :supporter_registration
|
||||
has_and_belongs_to_many :social_events
|
||||
|
||||
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
|
||||
:handicapped_access_required, :supporter_registration_attributes, :social_event_ids, :other_special_needs
|
||||
|
||||
accepts_nested_attributes_for :person
|
||||
accepts_nested_attributes_for :supporter_registration
|
||||
accepts_nested_attributes_for :social_events
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue