style
This commit is contained in:
parent
2b433a9cbe
commit
bd79719054
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class ConferenceRegistrationsController < ApplicationController
|
||||||
def create
|
def create
|
||||||
@registration = @conference.registrations.new(registration_params)
|
@registration = @conference.registrations.new(registration_params)
|
||||||
|
|
||||||
if current_user == nil
|
if current_user.nil?
|
||||||
# @user variable needs to be set so that _sign_up_form_embedded works properly
|
# @user variable needs to be set so that _sign_up_form_embedded works properly
|
||||||
@user = @registration.build_user(user_params)
|
@user = @registration.build_user(user_params)
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue