-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
When using Paranoia, checking new_record? returns false if the object was previously deleted.
@user= User.create email: 'test@example.com' @user.delete @new_user = User.find_or_create_by(email: 'test@example.com') @new_user.new_record?.should be