Sha256: 4263de1421511269637df7264257f24261c4dfec0d8ae18b503b1235087f3c51

Contents?: true

Size: 449 Bytes

Versions: 11

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

module Aws
  module Rails
    # SQS ActiveJob modules
    module SqsActiveJob
      extend ActiveSupport::Concern

      included do
        class_attribute :excluded_deduplication_keys
      end

      # class methods for SQS ActiveJob.
      module ClassMethods
        def deduplicate_without(*keys)
          self.excluded_deduplication_keys = keys.map(&:to_s) | ['job_id']
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aws-sdk-rails-4.1.0 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-4.0.3 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-4.0.2 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-4.0.1 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-4.0.0 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-3.13.0 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-3.12.0 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-3.11.0 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-3.10.0 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-3.9.1 lib/aws/rails/sqs_active_job/deduplication.rb
aws-sdk-rails-3.9.0 lib/aws/rails/sqs_active_job/deduplication.rb