diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-23 22:25:28 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-23 22:25:28 +0200 |
commit | 0e1635a68a2a3f9c74ca52f2b5c19d63428faf2c (patch) | |
tree | 6e68ec7f9df706319a832b9119c010ba6128ce8f /app/observers | |
parent | e92b563acf93a1d123ae9f3b599f7d4b1ba56f8e (diff) | |
download | gitlab-ce-0e1635a68a2a3f9c74ca52f2b5c19d63428faf2c.tar.gz |
Fixing requests after namespaces. Fixed admin bug with access to project
Diffstat (limited to 'app/observers')
-rw-r--r-- | app/observers/user_observer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/observers/user_observer.rb b/app/observers/user_observer.rb index e96ba28b7fb..d304b3a2894 100644 --- a/app/observers/user_observer.rb +++ b/app/observers/user_observer.rb @@ -1,6 +1,6 @@ class UserObserver < ActiveRecord::Observer def after_create(user) - user.create_namespace(code: user.username, name: user.name) + user.create_namespace(path: user.username, name: user.name) log_info("User \"#{user.name}\" (#{user.email}) was created") @@ -13,7 +13,7 @@ class UserObserver < ActiveRecord::Observer def after_save user if user.username_changed? and user.namespace - user.namespace.update_attributes(code: user.username) + user.namespace.update_attributes(path: user.username) end end |