module SnowmanIO::Concerns::Tokenable
Public Instance Methods
generate_token(token)
click to toggle source
# File lib/snowman-io/models/concerns/tokenable.rb, line 6 def generate_token(token) loop do token = SecureRandom.hex break token unless self.class.where(token: token).first end end