提交 6d352790 编写于 作者: D Dmitriy Zaporozhets

Fix user notifications

上级 2d875568
...@@ -506,7 +506,7 @@ class User < ActiveRecord::Base ...@@ -506,7 +506,7 @@ class User < ActiveRecord::Base
def post_create_hook def post_create_hook
log_info("User \"#{self.name}\" (#{self.email}) was created") 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) system_hook_service.execute_hooks_for(self, :create)
end end
...@@ -515,7 +515,7 @@ class User < ActiveRecord::Base ...@@ -515,7 +515,7 @@ class User < ActiveRecord::Base
system_hook_service.execute_hooks_for(self, :destroy) system_hook_service.execute_hooks_for(self, :destroy)
end end
def notification def notification_service
NotificationService.new NotificationService.new
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册