ruby - Devise: Is it possible to NOT send a confirmation email in specific cases ? (even when confirmable is active) -


here situation, use devise allow users create account on site , manage authentication. during registration process allow customers change options, leading different account being created still based on same core user resource. choose not send confirmation email of account types. don't care if account not confirmed , user cannot log in, that's ok, no pb that. how go doing ? thanks, alex

actually it's quite easy once dig little deeper. override 1 method in user model (or whatever using):

    # callback overwrite if confirmation required or not.     def confirmation_required?       !confirmed?     end 

put conditions , job's done !

alex


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -