diff --git a/app/models/user.rb b/app/models/user.rb index 5e371e2c60bee931af910ac913f00dd229761d22..8c2045444f007fde6223f99f0f97ab0e26e7bec4 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