Skip to content
Snippets Groups Projects
Commit cfeddb55 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix user creation cause of dual namespace build

parent 81f8114f
No related branches found
No related tags found
No related merge requests found
class UserObserver < ActiveRecord::Observer
def after_create(user)
user.create_namespace(path: user.username, name: user.name)
log_info("User \"#{user.name}\" (#{user.email}) was created")
 
Notify.new_user_email(user.id, user.password).deliver
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment