Module: UserRegistration::Notifications
- Included in:
- AccountCpt::Registration::RegularUser::WithFacebookV2, AccountCpt::Registration::RegularUser::WithFirebase, UsingBirthday, UsingPassword
- Defined in:
- app/my_lib/user_registration/notifications.rb
Overview
depends on `user` instance method to be defined first
Instance Method Summary collapse
Instance Method Details
#send_registration_email ⇒ Object
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_sms ⇒ Object
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 |