Created
March 1, 2017 04:04
-
-
Save fourcolors/d8e7464e3aacb07030a5b2fa223e4a67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@seller.user_info_token = loop do | |
token = SecureRandom.urlsafe_base64 | |
break token unless User.exists?(user_info_token: token) | |
end |
Author
fourcolors
commented
Mar 1, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment