public
Description: Lets you add emailed verifications to your ActiveRecord model with one line of code
Homepage:
Clone URL: git://github.com/joevandyk/fixie_verifications.git
Joe Van Dyk (author)
Sun Dec 28 09:37:38 -0800 2008
commit  0bc63fd49805ae2f1d708be7c90a4b94d6788dba
tree    81e11a709f848fc2a1bb78dd35d16486a44e8fd4
parent  aaa3bc26361232620a242838e73a43c2579a6616
name age message
file MIT-LICENSE Wed Dec 24 11:58:06 -0800 2008 Initial import [Joe Van Dyk]
file README Loading commit data...
file Rakefile Wed Dec 24 11:58:06 -0800 2008 Initial import [Joe Van Dyk]
directory generators/ Wed Dec 24 12:47:35 -0800 2008 Added migration [Joe Van Dyk]
file init.rb
file install.rb
directory lib/ Wed Dec 24 13:03:16 -0800 2008 Fix couple small typos [Joe Van Dyk]
directory tasks/ Wed Dec 24 11:58:06 -0800 2008 Initial import [Joe Van Dyk]
directory test/
file uninstall.rb
directory views/ Wed Dec 24 11:58:06 -0800 2008 Initial import [Joe Van Dyk]
README
FixieVerifications
==================

Easily add emailed verification to your application.  
Needs Rails 2.2 or Ruby 1.8.7 (for SecureRandom).


Example
=======

class User < ActiveRecord::Base
  has_verification_number 
end

u = User.create

# An email with a random code is sent to joe@fixieconsulting.com.
# Say the code is "12345"
u.needs_verification!("joe@fixieconsulting.com")  

# Either of these work
Verification.verify! "12345"
u.verify! "12345"

u.verified? # returns true

Copyright (c) 2008 Joe Van Dyk, Fixie, released under the MIT license