haseeb haseeb - 2 years ago 89
Ruby Question

Where to put @user.skip_confirmation! in devise signup

I want to skip confirmation email in signup and want to send manually. To skip I will do


But where to write this line?

Answer Source

Use ActiveRecord::Callbacks#before_create

Write this in your User model

before_create :my_method

def my_method
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download