Fix user notifications

This commit is contained in:
Dmitriy Zaporozhets 2014-06-17 22:54:21 +03:00
parent 2d87556847
commit 6d352790c4
1 changed files with 2 additions and 2 deletions

View File

@ -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