Registration thank you email and proposed workshops on front page
This commit is contained in:
@@ -487,7 +487,9 @@ class ConferencesController < ApplicationController
|
||||
@register_template = :questions if is_post
|
||||
when :save
|
||||
if is_post
|
||||
@registration ||= ConferenceRegistration.new
|
||||
if (new_registration = (!@registration))
|
||||
@registration = ConferenceRegistration.new
|
||||
end
|
||||
|
||||
@registration.conference_id = @this_conference.id
|
||||
@registration.user_id = current_user.id
|
||||
@@ -508,6 +510,10 @@ class ConferencesController < ApplicationController
|
||||
current_user.lastname = nil
|
||||
current_user.save
|
||||
|
||||
if new_registration
|
||||
UserMailer.registration_confirmation(@registration).deliver_now
|
||||
end
|
||||
|
||||
@register_template = @registration.registration_fees_paid ? :done : :payment
|
||||
end
|
||||
when :payment
|
||||
|
||||
Reference in New Issue
Block a user