Module: ActiveInteraction::Extras::Sidekiq::Perform
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_interaction/extras/sidekiq.rb
Instance Method Summary collapse
Instance Method Details
#deserialize_active_job_args(job_arguments) ⇒ Object
41 42 43 |
# File 'lib/active_interaction/extras/sidekiq.rb', line 41 def deserialize_active_job_args(job_arguments) ActiveJob::Arguments.deserialize(job_arguments).first&.with_indifferent_access || {} end |
#perform(*args) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/active_interaction/extras/sidekiq.rb', line 27 def perform(*args) # support for sidekiq encrypted params if args.length > 1 && args[0].nil? args.shift end args = ActiveJob::Arguments.deserialize(args) if self.class.respond_to?(:module_parent) self.class.module_parent.run!(*args) else self.class.parent.run!(*args) end end |