Introduce Program to include cfp/rooms/tracks/events/event_types/difficulty_levels

This commit is contained in:
Stella Rouzi 2015-10-25 13:29:02 +02:00
parent 28e55f3f50
commit 1e27b5f593
117 changed files with 1811 additions and 904 deletions

View file

@ -29,7 +29,7 @@ class Target < ActiveRecord::Base
numerator =
case unit
when Target.units[:submissions]
conference.events.where('created_at < ?', due_date).count
conference.program.events.where('created_at < ?', due_date).count
when Target.units[:registrations]
conference.registrations.where('created_at < ?', due_date).count
when Target.units[:program_minutes]