Class: SendPhoneConfirmationJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- SendPhoneConfirmationJob
- Defined in:
- app/jobs/send_phone_confirmation_job.rb
Overview
Send phone confirmation code via SMS gateway
Instance Method Summary collapse
Instance Method Details
#perform(id) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/jobs/send_phone_confirmation_job.rb', line 8 def perform(id) code = Code.find_by(id: id) return if code.nil? # To be implemented: use actual gateway code.user.phone end |