Do not prepare returning user for unpersisted records (#38136)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-03-10 16:37:59 +00:00
1 parent 3b6d94ce62
commit 64629eadb7
2 files changed
+8 -2

No files matched your search

+4 -2
View File
@@ -209,8 +209,10 @@ class User < ApplicationRecord
increment(:sign_in_count) if new_sign_in
save(validate: false) unless new_record?
prepare_returning_user!
unless new_record?
save(validate: false)
prepare_returning_user!
end
end
def pending?