require 'authlogic' class User < ActiveRecord::Base acts_as_authentic validates_presence_of :email def deliver_password_reset_instructions! reset_perishable_token! Postman.deliver_password_reset_instructions(self) end end