2023-05-21 17:59:36 +03:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
class InvitationsController < Devise::PasswordsController
|
2025-11-29 10:34:13 +02:00
|
|
|
def update
|
|
|
|
|
super do |resource|
|
|
|
|
|
resource.confirmed_at ||= Time.current if resource.errors.empty?
|
|
|
|
|
|
|
|
|
|
PasswordsController::Current.user = resource
|
|
|
|
|
end
|
|
|
|
|
end
|
2023-05-21 17:59:36 +03:00
|
|
|
end
|