Integrate the schedule in the admin interface

Integrate the schedule in the admin interface while adapting it to the new associations and models.
This commit is contained in:
Ana 2016-07-13 01:33:56 +02:00
parent e7a30302ff
commit dfd64a4510
32 changed files with 291 additions and 10074 deletions

View file

@ -31,8 +31,8 @@ class Program < ActiveRecord::Base
joins(:event_schedules).where('event_schedules.schedule_id = ? AND event_schedules.start_time IS NOT NULL AND event_schedules.room_id IS NOT NULL', schedule_id)
end
def unscheduled
select(&:unscheduled?)
def unscheduled(schedule_id=nil)
select{ |e| e.unscheduled?(schedule_id) }
end
def highlights