Fix user creation cause of dual namespace build

This commit is contained in:
Dmitriy Zaporozhets 2012-11-27 18:27:13 +00:00
parent 81f8114f24
commit cfeddb554e

View file

@ -1,7 +1,5 @@
class UserObserver < ActiveRecord::Observer class UserObserver < ActiveRecord::Observer
def after_create(user) def after_create(user)
user.create_namespace(path: user.username, name: user.name)
log_info("User \"#{user.name}\" (#{user.email}) was created") log_info("User \"#{user.name}\" (#{user.email}) was created")
Notify.new_user_email(user.id, user.password).deliver Notify.new_user_email(user.id, user.password).deliver