Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
/ HasRandomized Public archive

ActiveRecord random string generator for AR attributes - perfect for authorization keys and api ids

License

Notifications You must be signed in to change notification settings

DYE/HasRandomized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HasRandomized
=============

HasRandomized provides a simple method to generate a random key attribute. Instance methods for resetting and validating the uniqueness of the key are dynamically generated for each attribute.

Example
=======

class User < ActiveRecord::Base
  has_randomized :authentication_id, :method => :hex, :length => 16
end


Copyright (c) 2010 Adam Cuppy of Define: Your Edge, released under the MIT license

About

ActiveRecord random string generator for AR attributes - perfect for authorization keys and api ids

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages