From f05b1f61b4d92b6bd1ea4671c3cff3eb69a143bb Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 31 Jul 2024 01:38:40 +0000 Subject: [PATCH] Keep rubocop happy --- app/models/user.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 8b97c1ce2..8869d95be 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -26,10 +26,13 @@ class User < ApplicationRecord has_many :reports, dependent: :nullify has_many :contact_messages, dependent: :nullify + # rubocop:disable Style/ArgumentsForwarding + # TODO: Arguments forwarding doesn't seem to be supported by sorbet right now? sig { params(notification: T.untyped, args: T.untyped).void } def send_devise_notification(notification, *args) devise_mailer.send(notification, self, *args).deliver_later end + # rubocop:enable Style/ArgumentsForwarding # This is currently used when creating users via an alert # TODO: Remove this as soon as users are purely being created by people registering