Fixed error detecting registration status

This commit is contained in:
Godwin 2016-09-08 20:20:56 -07:00
parent 6f6dfaa830
commit d656815580

View File

@ -351,7 +351,7 @@ class ConferencesController < ApplicationController
@donations = 0 @donations = 0
@food = { meat: 0, vegan: 0, vegetarian: 0, all: 0 } @food = { meat: 0, vegan: 0, vegetarian: 0, all: 0 }
@registrations.each do | r | @registrations.each do | r |
if r.steps_completed.include? 'questions' if view_context.registration_status(r) == :registered
@completed_registrations += 1 @completed_registrations += 1
@bikes += 1 if r.bike == 'yes' @bikes += 1 if r.bike == 'yes'