Notes posted by eltin182
RSS feed
eltin182 -
February 12, 2016 - (<= v4.2.1)
0 thanks
Generate Token
For generate a token, make this:
def generate_token self.token = SecureRandom.uuid end
SecureRandom return a number random and the uuid make this number be unique. This a good idea for use in shopping cart, for example