Skip to content

Adds unique token generation to an ActiveRecord model.

Notifications You must be signed in to change notification settings

dangerouse/gen_token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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