Skip to content

Commit

Permalink
Keep rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Jul 31, 2024
1 parent c4f5ade commit f05b1f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f05b1f6

Please sign in to comment.