Class: Pay::EmailSyncJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Pay::EmailSyncJob
- Defined in:
- app/jobs/pay/email_sync_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(id, class_name) ⇒ Object
5 6 7 8 9 10 |
# File 'app/jobs/pay/email_sync_job.rb', line 5 def perform(id, class_name) billable = class_name.constantize.find(id) billable.sync_email_with_processor rescue ActiveRecord::RecordNotFound Rails.logger.info "Couldn't find a #{class_name} with ID = #{id}" end |