From c621166b45c393c4a492189bd71de1f9b5b2f65d Mon Sep 17 00:00:00 2001 From: DocuSeal Date: Sat, 14 Oct 2023 22:31:32 +0300 Subject: [PATCH] use full name form company name if missing --- app/controllers/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index bca21d22..ca07f304 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -43,7 +43,7 @@ class RegistrationsController < Devise::RegistrationsController self.resource = account.users.new(user_params) - account.name ||= "#{resource.full_name}'s Company" if params[:action] == 'create' + account.name ||= resource.full_name if params[:action] == 'create' end def user_params