From 50f0bb14d820436f9f3099056edecebd58e008c3 Mon Sep 17 00:00:00 2001 From: Godwin Date: Wed, 21 Sep 2016 22:34:09 -0700 Subject: [PATCH] Removed debug print statement --- app/models/conference_registration.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/conference_registration.rb b/app/models/conference_registration.rb index 4a0c1d3..fc2408b 100644 --- a/app/models/conference_registration.rb +++ b/app/models/conference_registration.rb @@ -38,11 +38,11 @@ class ConferenceRegistration < ActiveRecord::Base around_update :check_status def check_status - yield #saves + yield + old_status = status(true) new_status = status - puts " ===== #{old_status.to_s} : #{new_status.to_s} ==> #{conference.registration_status} ===== " if old_status.present? && old_status != new_status if (conference.registration_status == :pre && new_status == :preregistered) || (conference.registration_status == :open && new_status == :registered)