Merge pull request #200 from gopesht/add_sponsorship_levels
Adds sponsorship levels
This commit is contained in:
commit
411deb4c65
13 changed files with 159 additions and 10 deletions
|
|
@ -10,7 +10,8 @@ class Conference < ActiveRecord::Base
|
|||
:difficulty_levels_attributes, :use_difficulty_levels,
|
||||
:use_vpositions, :use_vdays, :vdays_attributes, :vpositions_attributes, :use_volunteers,
|
||||
:media_id, :media_type, :color, :description,
|
||||
:registration_description, :ticket_description
|
||||
:registration_description, :ticket_description,
|
||||
:sponsorship_levels_attributes
|
||||
|
||||
has_paper_trail
|
||||
|
||||
|
|
@ -31,6 +32,7 @@ class Conference < ActiveRecord::Base
|
|||
has_many :vdays, :dependent => :destroy
|
||||
has_many :vpositions, :dependent => :destroy
|
||||
has_many :vchoices, :dependent => :destroy
|
||||
has_many :sponsorship_levels, dependent: :destroy
|
||||
|
||||
belongs_to :venue
|
||||
|
||||
|
|
@ -41,6 +43,7 @@ class Conference < ActiveRecord::Base
|
|||
accepts_nested_attributes_for :venue
|
||||
accepts_nested_attributes_for :dietary_choices, :allow_destroy => true
|
||||
accepts_nested_attributes_for :supporter_levels, :allow_destroy => true
|
||||
accepts_nested_attributes_for :sponsorship_levels, allow_destroy: true
|
||||
accepts_nested_attributes_for :event_types, :allow_destroy => true
|
||||
accepts_nested_attributes_for :email_settings
|
||||
accepts_nested_attributes_for :questions, :allow_destroy => true
|
||||
|
|
|
|||
5
app/models/sponsorship_level.rb
Normal file
5
app/models/sponsorship_level.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class SponsorshipLevel < ActiveRecord::Base
|
||||
attr_accessible :title
|
||||
validates_presence_of :title
|
||||
belongs_to :conference
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue