Removed debug print statement
This commit is contained in:
parent
1d8cbce3e1
commit
50f0bb14d8
@ -38,11 +38,11 @@ class ConferenceRegistration < ActiveRecord::Base
|
|||||||
around_update :check_status
|
around_update :check_status
|
||||||
|
|
||||||
def check_status
|
def check_status
|
||||||
yield #saves
|
yield
|
||||||
|
|
||||||
old_status = status(true)
|
old_status = status(true)
|
||||||
new_status = status
|
new_status = status
|
||||||
|
|
||||||
puts " ===== #{old_status.to_s} : #{new_status.to_s} ==> #{conference.registration_status} ===== "
|
|
||||||
if old_status.present? && old_status != new_status
|
if old_status.present? && old_status != new_status
|
||||||
if (conference.registration_status == :pre && new_status == :preregistered) ||
|
if (conference.registration_status == :pre && new_status == :preregistered) ||
|
||||||
(conference.registration_status == :open && new_status == :registered)
|
(conference.registration_status == :open && new_status == :registered)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user