Sha256: 522a7f210b162b1802829567ba38fb7320cb2fc2b0eefc238c54e3ddd86c9f7b
Contents?: true
Size: 246 Bytes
Versions: 14
Compression:
Stored size: 246 Bytes
Contents
require 'securerandom' module Fe module AccessKeyGenerator def generate_access_key begin self.access_key = SecureRandom.hex end while self.class.exists?(access_key: access_key) return access_key end end end
Version data entries
14 entries across 14 versions & 1 rubygems