Class: Pay::CustomerSyncJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Pay::CustomerSyncJob
- Defined in:
- app/jobs/pay/customer_sync_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(pay_customer_id) ⇒ Object
3 4 5 6 7 |
# File 'app/jobs/pay/customer_sync_job.rb', line 3 def perform(pay_customer_id) Pay::Customer.find(pay_customer_id).update_customer! rescue ActiveRecord::RecordNotFound Rails.logger.info "Couldn't find a Pay::Customer with ID = #{pay_customer_id}" end |