instance method
generate_unique_secure_token
Ruby on Rails 6.1.7.10
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 43
def generate_unique_secure_token(length: MINIMUM_TOKEN_LENGTH)
SecureRandom.base58(length)
end
Defined in activerecord/lib/active_record/secure_token.rb line 43
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::SecureToken::ClassMethods