diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-17 22:54:21 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-17 22:54:21 +0300 |
commit | 6d352790c45cdb40265e7012eb991e3f69655924 (patch) | |
tree | 84274ccd5573984299b796d235e85a9df862fd24 /app/models/user.rb | |
parent | 2d87556847931bd146eddaafdee48c2f8954326c (diff) | |
download | gitlab-ce-6d352790c45cdb40265e7012eb991e3f69655924.tar.gz |
Fix user notifications
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 5e371e2c60b..8c2045444f0 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -506,7 +506,7 @@ class User < ActiveRecord::Base def post_create_hook log_info("User \"#{self.name}\" (#{self.email}) was created") - notification.new_user(self) + notification_service.new_user(self) system_hook_service.execute_hooks_for(self, :create) end @@ -515,7 +515,7 @@ class User < ActiveRecord::Base system_hook_service.execute_hooks_for(self, :destroy) end - def notification + def notification_service NotificationService.new end |