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