Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FixieVerifications
- ==================
- Easily add emailed verification to your application.
- Example
- =======
- class User < ActiveRecord::Base
- has_verification_number
- end
- u = User.create
- u.needs_verification! # Pretend the emailed code is 12345
- # 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
Add Comment
Please, Sign In to add comment