Skip to content

jkrall/gen_token

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenToken

GenToken is an ActiveRecord specific extension that will generate a unique value in a particular field for your model. It's useful to adding a publicly visible key to your model when simply hashing won't do For security purposes a hash may not be adequate since it is generated from the

Usage

class MyModel < ActiveRecord::Base
  attr_accessor :token
  include GenToken
  gen_token :token
end

Easy.

About

Adds unique token generation to an ActiveRecord model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%