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
name age message
file MIT-LICENSE Wed Dec 24 11:58:06 -0800 2008 Initial import [Joe Van Dyk]
file README Sun Dec 28 09:37:38 -0800 2008 (or you can use ruby 1.8.7 for secure random) [Joe Van Dyk]
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 Wed Dec 24 11:58:06 -0800 2008 Initial import [Joe Van Dyk]
file install.rb Wed Dec 24 12:47:35 -0800 2008 Added migration [Joe Van Dyk]
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/ Wed Dec 24 11:58:06 -0800 2008 Initial import [Joe Van Dyk]
file uninstall.rb Wed Dec 24 11:58:06 -0800 2008 Initial import [Joe Van Dyk]
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