From cb15ba401f0fae3a30f19e4d2c2d1f35809a2c14 Mon Sep 17 00:00:00 2001 From: Chrisbr Date: Wed, 6 Aug 2014 18:26:07 +0200 Subject: [PATCH] Fix campaigns dashboard missing method bug --- app/models/target.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/target.rb b/app/models/target.rb index 6a7990a8..0ef00a38 100644 --- a/app/models/target.rb +++ b/app/models/target.rb @@ -51,7 +51,7 @@ class Target < ActiveRecord::Base elsif unit == Target.units[:registrations] numerator = campaign.registrations_count elsif unit == Target.units[:program_minutes] - numerator = campaign.current_program_hours + numerator = conference.current_program_hours end progress = (numerator / target_count.to_f * 100).round(0).to_s