Sha256: 8af1451be0129f17faf46f2e485a1e39a72b261c83faff773ad10829211b94b5
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
# typed: false require 'ddtrace/contrib/integration' require 'ddtrace/contrib/active_model_serializers/configuration/settings' require 'ddtrace/contrib/active_model_serializers/patcher' module Datadog module Contrib module ActiveModelSerializers # Description of ActiveModelSerializers integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('0.9.0') register_as :active_model_serializers def self.version Gem.loaded_specs['active_model_serializers'] \ && Gem.loaded_specs['active_model_serializers'].version end def self.loaded? !defined?(::ActiveModel::Serializer).nil? \ && !defined?(::ActiveSupport::Notifications).nil? end def self.compatible? super && version >= MINIMUM_VERSION end def default_configuration Configuration::Settings.new end def patcher Patcher end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems