class FullVoter < Voter
- before_create :create_password
validates_presence_of :email, :password
+ def initialize(params={})
+ super
+ create_password
+ end
+
def create_password
token_generator = UniqueTokenGenerator.new( 16 )
until password and not password.empty? \