define attendees var

This commit is contained in:
differentreality 2013-07-12 21:13:17 +03:00
parent 76614b858c
commit c68126ab1f

View file

@ -21,6 +21,13 @@ class Admin::StatsController < ApplicationController
@speaker_fields_reg = %w[with_partner need_access other_needs diet arrival departure]
@supporter_levels = @conference.supporter_levels
@tickets = @conference.registrations.find_by_sql("select *
from registrations inner join supporter_registrations
ON registrations.id = supporter_registrations.registration_id
inner join supporter_levels
ON supporter_levels.id = supporter_registrations.supporter_level_id
where registrations.conference_id = #{@conference.id}")
end
def reg_support(level)