Module: UserRegistration::Notifications

Overview

depends on `user` instance method to be defined first

Instance Method Summary collapse

Instance Method Details

#send_registration_emailObject



12
13
14
# File 'app/my_lib/user_registration/notifications.rb', line 12

def send_registration_email
  UserMailer.registration_confirmation(user.id).deliver_later! wait: 1.minute
end

#send_registration_smsObject



6
7
8
9
10
# File 'app/my_lib/user_registration/notifications.rb', line 6

def send_registration_sms
  return if user.phone_v2_full.blank?
  msg = 'Welcome to Hungry Hub, Download the app now and earn Hungry Points every time you dine for easy cash back: http://taps.io/dwn'
  SmsWorker.perform_async(msg, user.phone_v2_full)
end