• Stan Hu's avatar
    Fix deprecated DeliveryJob message · 73cbf50e
    Stan Hu authored
    Notifications generate this deprecation error:
    
    ```
    DEPRECATION WARNING: Sending mail with DeliveryJob and
    Parameterized::DeliveryJob is deprecated and will be removed in Rails
    6.1. Please use MailDeliveryJob instead. (called from new_project_member
    at /builds/gitlab-org/gitlab/app/services/notification_service.rb:360)
    ```
    
    This was introduced in Rails: https://github.com/rails/rails/pull/34591.
    
    To migrate, we simply need to set the Rails configuration to use
    `MailDeliveryJob` instead of `DeliveryJob` and update the code to
    reflect that.
    
    Closes https://gitlab.com/gitlab-org/gitlab/-/issues/208305
    73cbf50e
notification_helpers.rb 1.91 KB