instance method
generate_unique_secure_token
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
generate_unique_secure_token(length: MINIMUM_TOKEN_LENGTH)
No documentation comment.
Parameters
-
lengthkey = MINIMUM_TOKEN_LENGTH
Source
# File activerecord/lib/active_record/secure_token.rb, line 61
def generate_unique_secure_token(length: MINIMUM_TOKEN_LENGTH)
SecureRandom.base58(length)
end
Defined in activerecord/lib/active_record/secure_token.rb line 61
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::SecureToken::ClassMethods