Sha256: 67a16e7ddfb328416ec70403e8abf10aae5c0a04138aa91336b2b90cddc58170

Contents?: true

Size: 345 Bytes

Versions: 15

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

module AdvancedSneakersActiveJob
  CONTENT_TYPE = 'application/vnd.activejob+json'
end

Sneakers::ContentType.register(
  content_type: AdvancedSneakersActiveJob::CONTENT_TYPE,
  deserializer: ->(payload) { ActiveSupport::JSON.decode(payload) },
  serializer: ->(payload) { ActiveSupport::JSON.encode(payload) }
)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
advanced-sneakers-activejob-0.6.0 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.5.0 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.4.0 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.3.6 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.3.5 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.3.4 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.3.3 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.3.2 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.3.1 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.3.0 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.2.3 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.2.2 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.2.1 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.2.0 lib/advanced_sneakers_activejob/content_type.rb
advanced-sneakers-activejob-0.1.0 lib/advanced_sneakers_activejob/content_type.rb