Skip to content

Lets you add emailed verifications to your ActiveRecord model with one line of code

License

Notifications You must be signed in to change notification settings

joevandyk/fixie_verifications

Repository files navigation

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 [email protected].
# Say the code is "12345"
u.needs_verification!("[email protected]")  

# 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

About

Lets you add emailed verifications to your ActiveRecord model with one line of code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages