Module: Users::NewUserNotifier

Included in:
CreateService, UpdateService
Defined in:
app/services/concerns/users/new_user_notifier.rb

Instance Method Summary collapse

Instance Method Details

#notify_new_user(user, reset_token) ⇒ Object


5
6
7
8
9
# File 'app/services/concerns/users/new_user_notifier.rb', line 5

def notify_new_user(user, reset_token)
  log_info("User \"#{user.name}\" (#{user.email}) was created")
  notification_service.new_user(user, reset_token) if reset_token
  system_hook_service.execute_hooks_for(user, :create)
end