This commit is contained in:
Henne Vogelsang 2014-11-14 13:23:04 +00:00
commit 7b6029224b
58 changed files with 1198 additions and 1272 deletions

View file

@ -55,7 +55,7 @@ class Conference < ActiveRecord::Base
has_many :participants, through: :registrations, source: :user
has_many :vdays, dependent: :destroy
has_many :vpositions, dependent: :destroy
has_many :sponsorship_levels, dependent: :destroy
has_many :sponsorship_levels, -> { order('position ASC') }, dependent: :destroy
has_many :sponsors, dependent: :destroy
has_many :photos, dependent: :destroy
has_many :targets, dependent: :destroy

View file

@ -2,5 +2,6 @@ class SponsorshipLevel < ActiveRecord::Base
attr_accessible :title, :conference_id
validates_presence_of :title
belongs_to :conference
acts_as_list scope: :conference
has_many :sponsors
end