adjust invitation

This commit is contained in:
Pete Matsyburka
2025-11-29 10:34:13 +02:00
parent dc178ef03f
commit fd2ba57325
2 changed files with 8 additions and 1 deletions
@@ -1,4 +1,11 @@
# frozen_string_literal: true
class InvitationsController < Devise::PasswordsController
def update
super do |resource|
resource.confirmed_at ||= Time.current if resource.errors.empty?
PasswordsController::Current.user = resource
end
end
end