module TokenGenerator
Public Instance Methods
generate_token()
click to toggle source
# File lib/mealib/token_generator.rb, line 4 def generate_token Digest::SHA2.hexdigest(Time.now.to_f.to_s + SecureRandom.urlsafe_base64(32)) end