Sha256: 248fadb806575152542938d7db012ba02ab2a8b14f3f6db00c451f757c4eee4b

Contents?: true

Size: 689 Bytes

Versions: 5

Compression:

Stored size: 689 Bytes

Contents

# typed: true
require 'ddtrace/contrib/patcher'
require 'ddtrace/ext/app_types'
require 'ddtrace/contrib/active_model_serializers/ext'
require 'ddtrace/contrib/active_model_serializers/events'

module Datadog
  module Contrib
    module ActiveModelSerializers
      # Patcher enables patching of 'active_model_serializers' module.
      module Patcher
        include Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

        def patch
          Events.subscribe!
        end

        def get_option(option)
          Datadog.configuration[:active_model_serializers].get_option(option)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/active_model_serializers/patcher.rb
ddtrace-0.54.1 lib/ddtrace/contrib/active_model_serializers/patcher.rb
ddtrace-0.54.0 lib/ddtrace/contrib/active_model_serializers/patcher.rb
ddtrace-0.53.0 lib/ddtrace/contrib/active_model_serializers/patcher.rb
ddtrace-0.52.0 lib/ddtrace/contrib/active_model_serializers/patcher.rb