From 92cef2b07efd8f486fcfbd1fcb5817d16ffd93f1 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 17 Oct 2015 19:34:17 +0300 Subject: [PATCH] We reach the slots through the halls --- app/models/conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index 742dd04..0da4ecf 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -15,7 +15,7 @@ class Conference < ActiveRecord::Base has_many :volunteer_teams has_one :call_for_participation, dependent: :destroy 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, reject_if: :all_blank, allow_destroy: true