Sha256: afd42e9233183d74c23dbc8496685ea4dc442b48bb90e04660350b0d1b9b51af

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

class ModelWorker
  include Sidekiq::Worker
  include ContextualizedLogs::ContextualizedWorker
  contextualize_worker true
  contextualize_model true
  def self.contextualize_args(args)
    { model_id: args.first, action: args.last }
  end

  def perform(model_id, action)
    Model.find(model_id)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
contextualized_logs-0.0.8.pre.alpha app/workers/model_worker.rb
contextualized_logs-0.0.7.pre.alpha app/workers/model_worker.rb
contextualized_logs-0.0.6.pre.alpha app/workers/model_worker.rb
contextualized_logs-0.0.5.pre.alpha app/workers/model_worker.rb
contextualized_logs-0.0.4.pre.demo app/workers/model_worker.rb
contextualized_logs-0.0.4.pre.alpha app/workers/model_worker.rb
contextualized_logs-0.0.3.pre.alpha app/workers/model_worker.rb
contextualized_logs-0.0.2.pre.alpha app/workers/model_worker.rb