Initial work on questions and payment and fix for confirmation email

This commit is contained in:
Godwin
2016-07-14 16:54:32 -07:00
parent 3f97da2aab
commit 62f94b1ecd
9 changed files with 54 additions and 28 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ class ApplicationController < LinguaFrancaApplicationController
end
expiry ||= (Time.now + 12.hours)
session[:confirm_uid] = user.id
UserMailer.send_mail :email_confirmation do
UserMailer.send_mail! :email_confirmation do
EmailConfirmation.create(user_id: user.id, expiry: expiry, url: url)
end
end
+9 -1
View File
@@ -2109,7 +2109,15 @@ class ConferencesController < ApplicationController
]
steps -= [:questions, :payment] unless status == :open
steps -= [:hosting] unless @registration.present? && view_context.same_city?(@registration.city, @conference.location)
if @registration.present?
if view_context.same_city?(@registration.city, @conference.location)
steps -= [:questions]
else
steps -= [:hosting]
end
else
steps -= [:hosting, :questions]
end
steps -= [:administration] unless @registration.present? && @conference.host?(current_user)