app/controllers/registrations_controller.rb in milia-0.3.18 vs app/controllers/registrations_controller.rb in milia-0.3.19
- old
+ new
@@ -28,9 +28,11 @@
if resource.errors.empty?
Tenant.tenant_signup(resource, @tenant, params[:coupon])
else # user creation failed; force tenant rollback
raise ActiveRecord::Rollback # force the tenant transaction to be rolled back
+ prep_signup_view( @tenant, resource )
+ render :new
end # if..then..else for valid user creation
else
prep_signup_view( @tenant, params[:user] )
render :new