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