We reach the slots through the halls

This commit is contained in:
Petko Bordjukov 2015-10-17 19:34:17 +03:00
parent a9803853c0
commit 92cef2b07e
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class Conference < ActiveRecord::Base
has_many :volunteer_teams has_many :volunteer_teams
has_one :call_for_participation, dependent: :destroy has_one :call_for_participation, dependent: :destroy
has_many :participants, class_name: 'User', through: :events has_many :participants, class_name: 'User', through: :events
has_many :slots, through: :events has_many :slots, through: :halls
accepts_nested_attributes_for :tracks, :halls, :event_types, :volunteer_teams, accepts_nested_attributes_for :tracks, :halls, :event_types, :volunteer_teams,
reject_if: :all_blank, allow_destroy: true reject_if: :all_blank, allow_destroy: true