Sha256: 37f531ab990c3790b964bad311cdfac6ff910e6283f53188381b5a87e17ebfa8
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
# frozen_string_literal: true module Servitium class ServiceActiveJob < ActiveJob::Base def perform(class_name, *args) service = class_name.constantize.call(*args) if service.context.success? service.send(:async_success) else service.send(:async_failure) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
servitium-1.3.0 | lib/servitium/service_active_job.rb |
servitium-1.2.28 | lib/servitium/service_active_job.rb |