mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
use full name form company name if missing
This commit is contained in:
1 parent
8e2da83f9e
commit
c621166b45
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user