Conflicts:
	Gemfile
	Gemfile.lock
This commit is contained in:
Graham Kaplan
2014-04-05 19:27:05 -07:00
91 changed files with 1409 additions and 103 deletions
+2
View File
@@ -10,6 +10,8 @@ class Conference < ActiveRecord::Base
has_many :conference_registration_form_fields, :order => 'position ASC', :dependent => :destroy#, :class_name => '::ConferenceRegistrationFormField'
has_many :registration_form_fields, :through => :conference_registration_form_fields
has_many :workshops
accepts_nested_attributes_for :conference_host_organizations, :reject_if => proc {|u| u[:organization_id].blank?}, :allow_destroy => true
def to_param
+2
View File
@@ -0,0 +1,2 @@
class Event < ActiveRecord::Base
end
+2
View File
@@ -0,0 +1,2 @@
class EventType < ActiveRecord::Base
end
+8
View File
@@ -56,6 +56,14 @@ class RegistrationFormField < ActiveRecord::Base
o
end
def repeats?()
field_type.to_s == 'multiple' && selection_type.to_s != 'select'
end
def is_array?()
field_type.to_s == 'multiple' && selection_type.to_s != 'radio_button'
end
private
def get_from_options(key)
if options
+7
View File
@@ -0,0 +1,7 @@
class Workshop < ActiveRecord::Base
belongs_to :conference
def to_param
slug
end
end
+2
View File
@@ -0,0 +1,2 @@
class WorkshopFacilitator < ActiveRecord::Base
end
@@ -0,0 +1,2 @@
class WorkshopRequestedResource < ActiveRecord::Base
end