Browse Source

Changes steps, and adds debug code piped to a file.

master
Jonathan Rosenbaum 1 year ago
parent
commit
0e502373a9
  1. 6
      app/helpers/registration_helper.rb

6
app/helpers/registration_helper.rb

@ -1,10 +1,15 @@
module RegistrationHelper
def registration_steps(conference = @conference)
File.write('testingdebug', "in registration_steps (registration_helper\n", mode: 'a')
if conference.city_name.present? && conference.city_id == 433
[:policy, :contact_info, :workshops]
else
{
pre: [:policy, :contact_info, :workshops],
open: [:policy, :contact_info, :questions, :hosting, :payment, :workshops]
}[@this_conference.registration_status]
end
end
def registration_status(registration)
return :unregistered if registration.nil?
@ -13,6 +18,7 @@ module RegistrationHelper
end
def current_registration_steps(registration = @registration)
File.write('testingdebug', 'in current_registration_steps', mode: 'a')
return nil unless registration.present?
steps = registration_steps(registration.conference)

Loading…
Cancel
Save